org.infinispan.remoting.transport.jgroups
Class MarshallerAdapter
java.lang.Object
org.infinispan.remoting.transport.jgroups.MarshallerAdapter
- All Implemented Interfaces:
- org.jgroups.blocks.RpcDispatcher.Marshaller, org.jgroups.blocks.RpcDispatcher.Marshaller2
public class MarshallerAdapter
- extends Object
- implements org.jgroups.blocks.RpcDispatcher.Marshaller2
Bridge between JGroups and Infinispan marshallers
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarshallerAdapter
public MarshallerAdapter(StreamingMarshaller m)
objectToBuffer
public org.jgroups.util.Buffer objectToBuffer(Object obj)
throws Exception
- Specified by:
objectToBuffer
in interface org.jgroups.blocks.RpcDispatcher.Marshaller2
- Throws:
Exception
objectFromByteBuffer
public Object objectFromByteBuffer(byte[] buf,
int offset,
int length)
throws Exception
- Specified by:
objectFromByteBuffer
in interface org.jgroups.blocks.RpcDispatcher.Marshaller2
- Throws:
Exception
objectToByteBuffer
public byte[] objectToByteBuffer(Object obj)
throws Exception
- Specified by:
objectToByteBuffer
in interface org.jgroups.blocks.RpcDispatcher.Marshaller
- Throws:
Exception
objectFromByteBuffer
public Object objectFromByteBuffer(byte[] buf)
throws Exception
- Specified by:
objectFromByteBuffer
in interface org.jgroups.blocks.RpcDispatcher.Marshaller
- Throws:
Exception
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.