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

public class MarshallerAdapter
extends Object
implements org.jgroups.blocks.RpcDispatcher.Marshaller

Bridge between JGroups and Infinispan marshallers

Since:
4.0
Author:
Manik Surtani

Constructor Summary
MarshallerAdapter(StreamingMarshaller m)
           
 
Method Summary
 Object objectFromBuffer(byte[] buf, int offset, int length)
           
 org.jgroups.util.Buffer objectToBuffer(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.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.