org.infinispan.remoting.transport.jgroups
Class MarshallerAdapter
java.lang.Object
org.infinispan.remoting.transport.jgroups.MarshallerAdapter
- All Implemented Interfaces:
- org.jgroups.blocks.RpcDispatcher.Marshaller
public class MarshallerAdapter
- extends Object
- implements org.jgroups.blocks.RpcDispatcher.Marshaller
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.Marshaller
- Throws:
Exception
objectFromBuffer
public Object objectFromBuffer(byte[] buf,
int offset,
int length)
throws Exception
- Specified by:
objectFromBuffer
in interface org.jgroups.blocks.RpcDispatcher.Marshaller
- Throws:
Exception
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.