Class RpcMessage
java.lang.Object
org.apache.catalina.tribes.group.RpcMessage
- All Implemented Interfaces:
Externalizable, Serializable
- Direct Known Subclasses:
RpcMessage.NoRpcChannelReply
A message used for RPC communication between group members.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA reply message sent when no RPC channel is found for a given RPC ID. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SerializableThe payload of the message.protected booleanWhether this message is a reply.protected byte[]The RPC channel identifier.protected byte[]The unique identifier for this message. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor required by Externalizable.RpcMessage(byte[] rpcId, byte[] uuid, Serializable message) Create a new RpcMessage. -
Method Summary
-
Field Details
-
message
The payload of the message. -
uuid
protected byte[] uuidThe unique identifier for this message. -
rpcId
protected byte[] rpcIdThe RPC channel identifier. -
reply
protected boolean replyWhether this message is a reply.
-
-
Constructor Details
-
RpcMessage
public RpcMessage()Default constructor required by Externalizable. -
RpcMessage
Create a new RpcMessage.- Parameters:
rpcId- The RPC channel identifieruuid- The unique identifier for this messagemessage- The message payload
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
toString
-