|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRpcCodec
A codec for RPC invocations. The coded encodes an RPC key and its arguments
into a byte[]
and decodes byte[]
into an RPC key
and arguments.
Method Summary | |
---|---|
QuadValue<IRpcMarker,String,String,IField[]> |
decode(byte[] rpcData)
Decode the byte[] into the RPC marker, key, identity of the
remote context invoking this RPC and arguments. |
byte[] |
encode(IRpcMarker rpcMarker,
String rpcKey,
String contextIdentity,
IField[] args)
Encode the RPC marker, key and arguments into a byte[] |
Method Detail |
---|
QuadValue<IRpcMarker,String,String,IField[]> decode(byte[] rpcData)
byte[]
into the RPC marker, key, identity of the
remote context invoking this RPC and arguments. The name of the remote
context is important for updating the correct RPC result record.
rpcData
- the byte[]
to decode
QuasValue
holding the RPC marker, key, identity of the
remote context invoking this RPC and the arguments for the
invocation, null
if it cannot be decoded.byte[] encode(IRpcMarker rpcMarker, String rpcKey, String contextIdentity, IField[] args)
byte[]
rpcMarker
- the RPC marker to encoderpcKey
- the RPC key to encodecontextIdentity
- the identity of the context invoking the RPCargs
- the arguments to encode
byte[]
with the encoded RPC marker, key and
arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |