Class HotRodEntryMarshaller
- java.lang.Object
-
- org.infinispan.persistence.remote.wrapper.HotRodEntryMarshaller
-
- All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller
public class HotRodEntryMarshaller extends Object implements org.infinispan.commons.marshall.Marshaller
HotRodEntryMarshaller.- Since:
- 5.2
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description HotRodEntryMarshaller(org.infinispan.commons.io.ByteBufferFactory byteBufferFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.marshall.BufferSizePredictor
getBufferSizePredictor(Object o)
boolean
isMarshallable(Object o)
org.infinispan.commons.dataconversion.MediaType
mediaType()
Object
objectFromByteBuffer(byte[] buf)
Object
objectFromByteBuffer(byte[] buf, int offset, int length)
org.infinispan.commons.io.ByteBuffer
objectToBuffer(Object o)
byte[]
objectToByteBuffer(Object obj)
byte[]
objectToByteBuffer(Object obj, int estimatedSize)
-
-
-
Method Detail
-
objectToByteBuffer
public byte[] objectToByteBuffer(Object obj, int estimatedSize) throws IOException, InterruptedException
- Specified by:
objectToByteBuffer
in interfaceorg.infinispan.commons.marshall.Marshaller
- Throws:
IOException
InterruptedException
-
objectToByteBuffer
public byte[] objectToByteBuffer(Object obj) throws IOException, InterruptedException
- Specified by:
objectToByteBuffer
in interfaceorg.infinispan.commons.marshall.Marshaller
- Throws:
IOException
InterruptedException
-
objectFromByteBuffer
public Object objectFromByteBuffer(byte[] buf) throws IOException, ClassNotFoundException
- Specified by:
objectFromByteBuffer
in interfaceorg.infinispan.commons.marshall.Marshaller
- Throws:
IOException
ClassNotFoundException
-
objectFromByteBuffer
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
- Specified by:
objectFromByteBuffer
in interfaceorg.infinispan.commons.marshall.Marshaller
- Throws:
IOException
ClassNotFoundException
-
objectToBuffer
public org.infinispan.commons.io.ByteBuffer objectToBuffer(Object o) throws IOException, InterruptedException
- Specified by:
objectToBuffer
in interfaceorg.infinispan.commons.marshall.Marshaller
- Throws:
IOException
InterruptedException
-
isMarshallable
public boolean isMarshallable(Object o) throws Exception
- Specified by:
isMarshallable
in interfaceorg.infinispan.commons.marshall.Marshaller
- Throws:
Exception
-
getBufferSizePredictor
public org.infinispan.commons.marshall.BufferSizePredictor getBufferSizePredictor(Object o)
- Specified by:
getBufferSizePredictor
in interfaceorg.infinispan.commons.marshall.Marshaller
-
mediaType
public org.infinispan.commons.dataconversion.MediaType mediaType()
- Specified by:
mediaType
in interfaceorg.infinispan.commons.marshall.Marshaller
-
-