Interface GridClientMarshaller
-
- All Known Implementing Classes:
GridClientJdkMarshaller,GridClientOptimizedMarshaller,GridClientZipOptimizedMarshaller
public interface GridClientMarshallerMarshaller for binary protocol messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBuffermarshal(Object obj, int off)Marshals object to byte array.<T> Tunmarshal(byte[] bytes)Unmarshals object from byte array.
-
-
-
Method Detail
-
marshal
ByteBuffer marshal(Object obj, int off) throws IOException
Marshals object to byte array.- Parameters:
obj- Object to marshal.off- Start offset.- Returns:
- Byte buffer.
- Throws:
IOException- If marshalling failed.
-
unmarshal
<T> T unmarshal(byte[] bytes) throws IOExceptionUnmarshals object from byte array.- Parameters:
bytes- Byte array.- Returns:
- Unmarshalled object.
- Throws:
IOException- If unmarshalling failed.
-
-