|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MulticastListener
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.
Method Summary | |
---|---|
java.lang.Object |
deliverObject(java.lang.Object msg,
MemberId sender,
int seqNo)
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,
MemberId sender,
int seqNo)
Upcall that is invoked by Jgroup to deliver a message msg ,
corresponding to an input stream from which the message may be read. |
java.lang.String |
getProtocolName()
Returns a string naming the protocol implemented by this multicast listener. |
Method Detail |
---|
java.lang.String getProtocolName()
java.lang.Object deliverStream(java.io.InputStream msg, MemberId sender, int seqNo)
msg
,
corresponding to an input stream from which the message may be read.
msg
- the input stream from which the message can be read.sender
- the sender of the multicast messageseqNo
- the sequence number of this multicast message
java.lang.Object deliverObject(java.lang.Object msg, MemberId sender, int seqNo)
msg
,
corresponding to a single serialized object.
msg
- the object that was multicasted.sender
- the sender of the multicast messageseqNo
- the sequence number of this multicast message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |