public abstract class AbstractMarshaller
extends org.infinispan.commons.marshall.AbstractExternalizer
implements org.infinispan.commons.marshall.Marshaller
| Constructor and Description |
|---|
AbstractMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
org.infinispan.commons.marshall.BufferSizePredictor |
getBufferSizePredictor(Object o) |
Set<Class<? extends Object>> |
getTypeClasses() |
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 o) |
byte[] |
objectToByteBuffer(Object obj,
int estimatedSize) |
protected abstract org.apache.avro.io.DatumReader |
reader(String schemaName) |
Object |
readObject(ObjectInput input) |
void |
writeObject(ObjectOutput output,
Object o) |
protected abstract org.apache.avro.io.DatumReader reader(String schemaName) throws InterruptedException, IOException, ClassNotFoundException
public void writeObject(ObjectOutput output, Object o) throws IOException
writeObject in interface org.infinispan.commons.marshall.ExternalizerIOExceptionpublic org.infinispan.commons.io.ByteBuffer objectToBuffer(Object o) throws IOException, InterruptedException
objectToBuffer in interface org.infinispan.commons.marshall.MarshallerIOExceptionInterruptedExceptionpublic byte[] objectToByteBuffer(Object obj, int estimatedSize) throws IOException, InterruptedException
objectToByteBuffer in interface org.infinispan.commons.marshall.MarshallerIOExceptionInterruptedExceptionpublic byte[] objectToByteBuffer(Object o) throws IOException
objectToByteBuffer in interface org.infinispan.commons.marshall.MarshallerIOExceptionpublic Object readObject(ObjectInput input) throws IOException, ClassNotFoundException
readObject in interface org.infinispan.commons.marshall.ExternalizerIOExceptionClassNotFoundExceptionpublic Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
objectFromByteBuffer in interface org.infinispan.commons.marshall.MarshallerIOExceptionClassNotFoundExceptionpublic Object objectFromByteBuffer(byte[] buf) throws IOException, ClassNotFoundException
objectFromByteBuffer in interface org.infinispan.commons.marshall.MarshallerIOExceptionClassNotFoundExceptionpublic Set<Class<? extends Object>> getTypeClasses()
getTypeClasses in interface org.infinispan.commons.marshall.AdvancedExternalizerpublic boolean isMarshallable(Object o) throws Exception
isMarshallable in interface org.infinispan.commons.marshall.MarshallerExceptionpublic org.infinispan.commons.marshall.BufferSizePredictor getBufferSizePredictor(Object o)
getBufferSizePredictor in interface org.infinispan.commons.marshall.MarshallerCopyright © 2016. All rights reserved.