RpcMessagepublic class RpcMessage extends Object implements ExternalizableTitle:
Description:
Company: |
Fields Summary |
---|
protected Serializable | message | protected byte[] | uuid | protected byte[] | rpcId | protected boolean | reply |
Constructors Summary |
---|
public RpcMessage()
//for serialization
| public RpcMessage(byte[] rpcId, byte[] uuid, Serializable message)
this.rpcId = rpcId;
this.uuid = uuid;
this.message = message;
|
Methods Summary |
---|
public void | readExternal(java.io.ObjectInput in)
reply = in.readBoolean();
int length = in.readInt();
uuid = new byte[length];
in.read(uuid, 0, length);
length = in.readInt();
rpcId = new byte[length];
in.read(rpcId, 0, length);
message = (Serializable)in.readObject();
| public java.lang.String | toString()
StringBuffer buf = new StringBuffer("RpcMessage[");
buf.append(super.toString());
buf.append("] rpcId=");
buf.append(Arrays.toString(rpcId));
buf.append("; uuid=");
buf.append(Arrays.toString(uuid));
buf.append("; msg=");
buf.append(message);
return buf.toString();
| public void | writeExternal(java.io.ObjectOutput out)
out.writeBoolean(reply);
out.writeInt(uuid.length);
out.write(uuid, 0, uuid.length);
out.writeInt(rpcId.length);
out.write(rpcId, 0, rpcId.length);
out.writeObject(message);
|
|