Package org.jgroups.util
Class MyReceiver<T>
- java.lang.Object
-
- org.jgroups.ReceiverAdapter
-
- org.jgroups.util.MyReceiver<T>
-
- All Implemented Interfaces:
MembershipListener
,MessageListener
,Receiver
,StateListener
public class MyReceiver<T> extends ReceiverAdapter
Generic receiver for a JChannel- Since:
- 3.3
- Author:
- Bela Ban
-
-
Constructor Summary
Constructors Constructor Description MyReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.jgroups.ReceiverAdapter
block, getState, receive, setState, suspect, unblock, viewAccepted
-
-
-
-
Field Detail
-
list
protected final java.util.List<T> list
-
name
protected java.lang.String name
-
verbose
protected boolean verbose
-
raw_msgs
protected boolean raw_msgs
-
-
Method Detail
-
receive
public void receive(Message msg)
Description copied from interface:MessageListener
Called when a message is received.- Specified by:
receive
in interfaceMessageListener
- Overrides:
receive
in classReceiverAdapter
-
rawMsgs
public MyReceiver rawMsgs(boolean flag)
-
list
public java.util.List<T> list()
-
verbose
public MyReceiver<T> verbose(boolean flag)
-
name
public java.lang.String name()
-
name
public MyReceiver<T> name(java.lang.String name)
-
reset
public MyReceiver<T> reset()
-
size
public int size()
-
-