Class AbstractMarshaller
- java.lang.Object
-
- org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller
-
- All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller,org.infinispan.commons.marshall.StreamAwareMarshaller
- Direct Known Subclasses:
UserMarshaller
public abstract class AbstractMarshaller extends Object implements org.infinispan.commons.marshall.Marshaller, org.infinispan.commons.marshall.StreamAwareMarshaller
Abstract marshaller implementation.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description AbstractMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.marshall.BufferSizePredictorgetBufferSizePredictor(Object object)ObjectobjectFromByteBuffer(byte[] bytes)ObjectobjectFromByteBuffer(byte[] buf, int offset, int length)org.infinispan.commons.io.ByteBufferobjectToBuffer(Object object)byte[]objectToByteBuffer(Object object)byte[]objectToByteBuffer(Object obj, int estimatedSize)intsizeEstimate(Object object)voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
stop
public void stop()
- Specified by:
stopin interfaceorg.infinispan.commons.marshall.Marshaller
-
sizeEstimate
public int sizeEstimate(Object object)
- Specified by:
sizeEstimatein interfaceorg.infinispan.commons.marshall.StreamAwareMarshaller
-
getBufferSizePredictor
public org.infinispan.commons.marshall.BufferSizePredictor getBufferSizePredictor(Object object)
- Specified by:
getBufferSizePredictorin interfaceorg.infinispan.commons.marshall.Marshaller
-
objectFromByteBuffer
public Object objectFromByteBuffer(byte[] bytes) throws IOException, ClassNotFoundException
- Specified by:
objectFromByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionClassNotFoundException
-
objectFromByteBuffer
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
- Specified by:
objectFromByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionClassNotFoundException
-
objectToByteBuffer
public byte[] objectToByteBuffer(Object object) throws IOException, InterruptedException
- Specified by:
objectToByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionInterruptedException
-
objectToBuffer
public org.infinispan.commons.io.ByteBuffer objectToBuffer(Object object) throws IOException
- Specified by:
objectToBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOException
-
objectToByteBuffer
public byte[] objectToByteBuffer(Object obj, int estimatedSize) throws IOException, InterruptedException
- Specified by:
objectToByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionInterruptedException
-
-