public class MyReceiver<T> extends ReceiverAdapter
限定符和类型 | 字段和说明 |
---|---|
protected java.util.List<T> |
list |
protected java.lang.String |
name |
protected boolean |
verbose |
构造器和说明 |
---|
MyReceiver() |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<T> |
list() |
java.lang.String |
name() |
MyReceiver<T> |
name(java.lang.String name) |
void |
receive(Message msg)
Called when a message is received.
|
MyReceiver<T> |
reset() |
int |
size() |
MyReceiver<T> |
verbose(boolean flag) |
block, getState, setState, suspect, unblock, viewAccepted
protected final java.util.List<T> list
protected java.lang.String name
protected boolean verbose
public void receive(Message msg)
ReceiverAdapter
receive
在接口中 MessageListener
receive
在类中 ReceiverAdapter
public java.util.List<T> list()
public MyReceiver<T> verbose(boolean flag)
public java.lang.String name()
public MyReceiver<T> name(java.lang.String name)
public MyReceiver<T> reset()
public int size()