public abstract class BaseProtoStreamMarshaller
extends org.infinispan.commons.marshall.AbstractMarshaller
Marshaller
that uses Protobuf
encoding. Subclasses must implement just a single getSerializationContext()
lookup method.Modifier | Constructor and Description |
---|---|
protected |
BaseProtoStreamMarshaller() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.infinispan.protostream.SerializationContext |
getSerializationContext()
Subclasses must implement this method in order to provide a way to lookup the
SerializationContext |
boolean |
isMarshallable(Object o) |
org.infinispan.commons.dataconversion.MediaType |
mediaType() |
Object |
objectFromByteBuffer(byte[] buf,
int offset,
int length) |
protected org.infinispan.commons.io.ByteBuffer |
objectToBuffer(Object o,
int estimatedSize) |
protected abstract org.infinispan.protostream.SerializationContext getSerializationContext()
SerializationContext
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public boolean isMarshallable(Object o)
protected org.infinispan.commons.io.ByteBuffer objectToBuffer(Object o, int estimatedSize) throws IOException, InterruptedException
objectToBuffer
in class org.infinispan.commons.marshall.AbstractMarshaller
IOException
InterruptedException
public org.infinispan.commons.dataconversion.MediaType mediaType()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.