public class JGroupsReplyMessage extends ReplyMessage implements org.jgroups.util.Streamable, Externalizable
commandIdentifier, resultRevision, resultType, serializedResult, success
Constructor and Description |
---|
JGroupsReplyMessage()
Default constructor required by the
Streamable and Externalizable interfaces. |
JGroupsReplyMessage(String commandIdentifier,
boolean success,
Object returnValue,
Serializer serializer)
Initializes a JGroupsReplyMessage containing a reply to the command with given {commandIdentifier} and given
returnValue . |
Modifier and Type | Method and Description |
---|---|
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInput in) |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutput out) |
equals, getCommandIdentifier, getError, getResultRevision, getResultType, getReturnValue, getSerializedResult, hashCode, isSuccess, toString
public JGroupsReplyMessage()
Streamable
and Externalizable
interfaces. Do not use
directly.public JGroupsReplyMessage(String commandIdentifier, boolean success, Object returnValue, Serializer serializer)
returnValue
. The parameter success
determines whether the was executed successfully or not.commandIdentifier
- The identifier of the command to which the message is a replysuccess
- Whether or not the command executed successfully or notreturnValue
- The return value of command process
the given returnValue
is ignored.serializer
- The serializer to serialize the message contents withpublic 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–2017. All rights reserved.