Modifier and Type | Method and Description |
---|---|
Request |
deserializeRequest(byte[] bytes,
RemoteObject obj)
Deserialize a Request
|
Response |
deserializeResponse(byte[] bytes,
java.lang.Class<?> type)
Deserialize a Response
|
byte[] |
serialize(java.lang.Object obj)
Serialize
|
byte[] serialize(java.lang.Object obj) throws SerializerException
obj
- - object to serializeSerializerException
- - If the serialization failedRequest deserializeRequest(byte[] bytes, RemoteObject obj) throws SerializerException
bytes
- - serialized requestobj
- - remoteObject which is receiving requestsSerializerException
- - If the serialization failedResponse deserializeResponse(byte[] bytes, java.lang.Class<?> type) throws SerializerException
bytes
- serialized responsetype
- - return type expectedSerializerException
- - If the serialization failed