jgroup.multicast
Interface MulticastListener
- All Superinterfaces:
- Listener
- public interface MulticastListener
- extends Listener
This interface enables members to receive message delivery notifications.
Members implementing this interface must be able to react in a suitable
way to the delivery of messages composed either by single objects or
an input stream.
- Since:
- Jgroup 0.7
- Author:
- Alberto Montresor
Method Summary |
java.lang.Object |
deliverObject(java.lang.Object msg)
Upcall that is invoked by Jgroup to deliver a message msg ,
corresponding to a single serialized object. |
java.lang.Object |
deliverStream(java.io.InputStream msg)
Upcall that is invoked by Jgroup to deliver a message msg ,
corresponding to an input stream from which the message may be read. |
deliverStream
public java.lang.Object deliverStream(java.io.InputStream msg)
- Upcall that is invoked by Jgroup to deliver a message
msg
,
corresponding to an input stream from which the message may be read.
- Parameters:
msg
- the input stream from which the message can be read.- Returns:
- an object that will be delivered to the invoker through the
AckListener object specified when multicasting the message.
deliverObject
public java.lang.Object deliverObject(java.lang.Object msg)
- Upcall that is invoked by Jgroup to deliver a message
msg
,
corresponding to a single serialized object.
- Parameters:
msg
- the input stream from which the message can be read.- Returns:
- an object that will be delivered to the invoker through the
AckListener object specified when multicasting the message.