Package org.jgroups
Interface MessageListener
-
- All Superinterfaces:
StateListener
- All Known Subinterfaces:
Receiver
- All Known Implementing Classes:
Chat
,Draw
,MyReceiver
,QuoteServer
,ReceiverAdapter
,RELAY.Receiver
,RelayDemo
,RelayDemoRpc
,Relayer.Bridge
,ReplicatedTree
,ViewDemo
public interface MessageListener extends StateListener
MessageListener allows a listener to be notified when aMessage
or a state transfer events arrives to a node.MessageListener is often used by JGroups building blocks installed on top of a channel i.e RpcDispatcher and MessageDispatcher.
- Since:
- 2.0
- Author:
- Bela Ban, Vladimir Blagojevic
- See Also:
RpcDispatcher
,MessageDispatcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
receive(Message msg)
Called when a message is received.default void
receive(MessageBatch batch)
Called when a batch of messages is received-
Methods inherited from interface org.jgroups.StateListener
getState, setState
-
-
-
-
Method Detail
-
receive
void receive(Message msg)
Called when a message is received.- Parameters:
msg
-
-
receive
default void receive(MessageBatch batch)
Called when a batch of messages is received
-
-