jgroup.relacs.events
Class MulticastRequest
java.lang.Object
jgroup.relacs.events.Event
jgroup.relacs.events.MulticastRequest
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, EventTags
public final class MulticastRequest
- extends Event
This class represents a local message exchanged between members and
the daemon. It is used by members to multicast a message.
- Since:
- Jgroup 1.2
- Author:
- Alberto Montresor
- See Also:
- Serialized Form
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MulticastRequest
public MulticastRequest()
- Default constructor for externalization.
MulticastRequest
public MulticastRequest(int gid,
boolean isObject,
OutMessage payload,
MemberId sender,
AckListener ackListener,
ChainIdentifier chId)
- Creates a
MulticastRequest
event.
- Parameters:
gid
- group identifierisObject
- true if the message contains a single messagepayload
- the payload of the messagesender
- sender identifierackListener
- ack listenerchainId
- the chain identifier
getPayload
public OutMessage getPayload()
isObject
public boolean isObject()
getSender
public MemberId getSender()
getAckListener
public AckListener getAckListener()
getChainId
public ChainIdentifier getChainId()
toString
public java.lang.String toString()
- Overrides:
toString
in class Event
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Restores the content of this object from the marshalled data contained
in the specified input stream.
- Specified by:
readExternal
in interface java.io.Externalizable
- Overrides:
readExternal
in class Event
- Parameters:
in
- the stream to be read
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Marshals the content of this object to the specified output stream.
- Specified by:
writeExternal
in interface java.io.Externalizable
- Overrides:
writeExternal
in class Event
- Parameters:
out
- the stream to be written
- Throws:
java.io.IOException
Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.