org.infinispan.remoting.transport.jgroups
Class MarshallerAdapter

java.lang.Object
  extended by 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

Constructor Summary
MarshallerAdapter(StreamingMarshaller m)
           
 
Method Summary
 Object objectFromByteBuffer(byte[] buf)
           
 Object objectFromByteBuffer(byte[] buf, int offset, int length)
           
 org.jgroups.util.Buffer objectToBuffer(Object obj)
           
 byte[] objectToByteBuffer(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshallerAdapter

public MarshallerAdapter(StreamingMarshaller m)
Method Detail

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 © 2011 JBoss, a division of Red Hat. All Rights Reserved.