public class HotRodEntryMarshaller extends Object implements org.infinispan.commons.marshall.Marshaller
Constructor and Description |
---|
HotRodEntryMarshaller(org.infinispan.commons.io.ByteBufferFactory byteBufferFactory) |
Modifier and Type | Method and Description |
---|---|
org.infinispan.commons.marshall.BufferSizePredictor |
getBufferSizePredictor(Object o) |
boolean |
isMarshallable(Object o) |
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) |
public HotRodEntryMarshaller(org.infinispan.commons.io.ByteBufferFactory byteBufferFactory)
public byte[] objectToByteBuffer(Object obj, int estimatedSize) throws IOException, InterruptedException
objectToByteBuffer
in interface org.infinispan.commons.marshall.Marshaller
IOException
InterruptedException
public byte[] objectToByteBuffer(Object obj) throws IOException, InterruptedException
objectToByteBuffer
in interface org.infinispan.commons.marshall.Marshaller
IOException
InterruptedException
public Object objectFromByteBuffer(byte[] buf) throws IOException, ClassNotFoundException
objectFromByteBuffer
in interface org.infinispan.commons.marshall.Marshaller
IOException
ClassNotFoundException
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
objectFromByteBuffer
in interface org.infinispan.commons.marshall.Marshaller
IOException
ClassNotFoundException
public org.infinispan.commons.io.ByteBuffer objectToBuffer(Object o) throws IOException, InterruptedException
objectToBuffer
in interface org.infinispan.commons.marshall.Marshaller
IOException
InterruptedException
public boolean isMarshallable(Object o) throws Exception
isMarshallable
in interface org.infinispan.commons.marshall.Marshaller
Exception
public org.infinispan.commons.marshall.BufferSizePredictor getBufferSizePredictor(Object o)
getBufferSizePredictor
in interface org.infinispan.commons.marshall.Marshaller
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.