|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgroup.relacs.events.Event jgroup.relacs.events.DeliveryEvent
public final class DeliveryEvent
The DeliveryEvent
class represents a local message
exchanged between members and the daemon; it is used by a daemon
to notify members that a message is ready to be delivered.
Field Summary |
---|
Fields inherited from class jgroup.relacs.events.Event |
---|
gid, tag |
Fields inherited from interface jgroup.relacs.events.EventTags |
---|
DAEMON_FAILURE_EVENT, DELIVERY_ACK, DELIVERY_EVENT, INSTALL_ACK, INSTALL_EVENT, JOIN_REQUEST, LEAVE_REQUEST, MEMBER_LEFT_EVENT, MULTICAST_REQUEST, PREPARE_ACK, PREPARE_EVENT |
Constructor Summary | |
---|---|
DeliveryEvent()
Default constructor for externalization. |
|
DeliveryEvent(int gid,
boolean isObject,
int mid,
int hpos,
MemberId sender,
boolean ackRequired,
InMessage payload)
Builds a new DeliveryEvent object. |
Method Summary | |
---|---|
int |
getHostIndex()
|
int |
getMessageId()
Returns the message identifier for this multicast message. |
InMessage |
getPayload()
|
MemberId |
getSender()
Returns the sender of this multicast message. |
boolean |
isAckRequired()
|
boolean |
isObject()
|
void |
readExternal(java.io.ObjectInput in)
Restores the content of this object from the marshalled data contained in the specified input stream. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
Marshals the content of this object to the specified output stream. |
Methods inherited from class jgroup.relacs.events.Event |
---|
getGid, getTag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeliveryEvent()
public DeliveryEvent(int gid, boolean isObject, int mid, int hpos, MemberId sender, boolean ackRequired, InMessage payload)
DeliveryEvent
object.
gid
- Group identifierisObject
- True if the payload contains a single object; false if it
contains a streammid
- Message identifiersender
- Sender identifierackRequired
- True if acknowledgement is required; false otherwisepayload
- A stream or object payloadMethod Detail |
---|
public MemberId getSender()
public int getHostIndex()
public int getMessageId()
public boolean isObject()
public boolean isAckRequired()
public InMessage getPayload()
public java.lang.String toString()
toString
in class Event
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class Event
in
- the stream to be read
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class Event
out
- the stream to be written
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |