public static class RpcDispatcher.MarshallerAdapter extends Object implements RpcDispatcher.Marshaller2
| Constructor and Description |
|---|
MarshallerAdapter(RpcDispatcher.Marshaller marshaller) |
| Modifier and Type | Method and Description |
|---|---|
Object |
objectFromByteBuffer(byte[] buf) |
Object |
objectFromByteBuffer(byte[] buf,
int offset,
int length) |
Buffer |
objectToBuffer(Object obj)
Marshals the object into a byte[] buffer and returns a Buffer with a ref to the underlying byte[] buffer,
offset and length.
Note that the underlying byte[] buffer must not be changed as this would change the buffer of a message which potentially can get retransmitted, and such a retransmission would then carry a ref to a changed byte[] buffer ! |
byte[] |
objectToByteBuffer(Object obj) |
public MarshallerAdapter(RpcDispatcher.Marshaller marshaller)
public byte[] objectToByteBuffer(Object obj) throws Exception
objectToByteBuffer in interface RpcDispatcher.MarshallerExceptionpublic Object objectFromByteBuffer(byte[] buf) throws Exception
objectFromByteBuffer in interface RpcDispatcher.MarshallerExceptionpublic Buffer objectToBuffer(Object obj) throws Exception
RpcDispatcher.Marshaller2objectToBuffer in interface RpcDispatcher.Marshaller2Exceptionpublic Object objectFromByteBuffer(byte[] buf, int offset, int length) throws Exception
objectFromByteBuffer in interface RpcDispatcher.Marshaller2ExceptionCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.