queueview.java

来自「JGRoups源码」· Java 代码 · 共 27 行

JAVA
27
字号
// $Id: QUEUEView.java,v 1.1.1.1 2003/09/09 01:24:09 belaban Exp $package org.jgroups.debug;import javax.swing.*;/**   Shows the internals of the QUEUE protocol. Imlements QUEUE.Observer, gets called before an event   is added to the (internal) up- or down-queue of QUEUE (<em>not</em>Protocol !). This allows   to see what's going on in QUEUE. QUEUEView can also query the attributes of QUEUE, e.g. up_vec,   dn_vec etc.<br>   QUEUEView is implemented as a JPanel, and not as a JFrame, so it can be displayed inside the   Debugger's own view.   @author  Bela Ban, July 23 2000*/public class QUEUEView extends ProtocolSpecificView {        public QUEUEView() {  // must have a public constructor, will be created by means of reflection	add(new JButton("QUEUEView: hello world"));    }    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?