public class JGroupsDispatchMessage extends DispatchMessage implements org.jgroups.util.Streamable, Externalizable
Streamable
interface for faster JGroups-specific serialization, but also supports
Java serialization by implementing the Externalizable
interface.commandIdentifier, commandName, expectReply, payloadRevision, payloadType, serializedMetaData, serializedPayload
Constructor and Description |
---|
JGroupsDispatchMessage()
Default constructor required by the
Streamable and Externalizable interfaces. |
JGroupsDispatchMessage(CommandMessage<?> commandMessage,
Serializer serializer,
boolean expectReply)
Initialize a JGroupsDispatchMessage for the given
commandMessage , to be serialized using given
serializer . |
Modifier and Type | Method and Description |
---|---|
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInput in) |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutput out) |
equals, getCommandIdentifier, getCommandMessage, getCommandName, getPayloadRevision, getPayloadType, getSerializedMetaData, getSerializedPayload, hashCode, isExpectReply, toString
public JGroupsDispatchMessage()
Streamable
and Externalizable
interfaces. Do not use
directly.public JGroupsDispatchMessage(CommandMessage<?> commandMessage, Serializer serializer, boolean expectReply)
commandMessage
, to be serialized using given
serializer
. expectReply
indicates whether the sender will be expecting a reply.commandMessage
- The message to send to the remote segmentserializer
- The serialize to serialize the message payload and metadata withexpectReply
- whether or not the sender is waiting for a reply.public void writeTo(DataOutput out) throws IOException
writeTo
in interface org.jgroups.util.Streamable
IOException
public void readFrom(DataInput in) throws IOException
readFrom
in interface org.jgroups.util.Streamable
IOException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
Copyright © 2010–2018. All rights reserved.