public interface MessageListener
Messageor 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.
|Modifier and Type||Method and Description|
Allows an application to write a state through a provided OutputStream.
Called when a message is received.
Allows an application to read a state through a provided InputStream.
void receive(Message msg)
void getState(OutputStream output) throws Exception
output- the OutputStream
Exception- if the streaming fails, any exceptions should be thrown so that the state requester can re-throw them and let the caller know what happened
void setState(InputStream input) throws Exception
input- the InputStream
Exception- if the streaming fails, any exceptions should be thrown so that the state requester can catch them and thus know what happened
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.