public class MyReceiver<T> extends ReceiverAdapter
Modifier and Type | Field and Description |
---|---|
protected java.util.List<T> |
list |
protected java.lang.String |
name |
protected boolean |
raw_msgs |
protected boolean |
verbose |
Constructor and Description |
---|
MyReceiver() |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
list() |
java.lang.String |
name() |
MyReceiver<T> |
name(java.lang.String name) |
MyReceiver |
rawMsgs(boolean flag) |
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
protected boolean raw_msgs
public void receive(Message msg)
ReceiverAdapter
receive
in interface MessageListener
receive
in class ReceiverAdapter
public MyReceiver rawMsgs(boolean flag)
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()
Copyright © 1998-2020 Red Hat. All Rights Reserved.