Class AbstractInternalProtoStreamMarshaller
java.lang.Object
org.infinispan.marshall.protostream.impl.AbstractInternalProtoStreamMarshaller
- All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller,org.infinispan.commons.marshall.StreamAwareMarshaller
- Direct Known Subclasses:
PersistenceMarshallerImpl
public abstract class AbstractInternalProtoStreamMarshaller
extends Object
implements org.infinispan.commons.marshall.Marshaller, org.infinispan.commons.marshall.StreamAwareMarshaller
An abstract ProtoStream based
Marshaller and StreamAwareMarshaller implementation that is the basis
of the Persistence and Global marshallers.- Since:
- 12.0
- Author:
- Ryan Emerson
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SerializationContextRegistryprotected Logprotected org.infinispan.commons.marshall.Marshaller -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.marshall.BufferSizePredictorabstract org.infinispan.protostream.ImmutableSerializationContextorg.infinispan.commons.marshall.Marshallerbooleanorg.infinispan.commons.dataconversion.MediaTypeobjectFromByteBuffer(byte[] buf) objectFromByteBuffer(byte[] buf, int offset, int length) org.infinispan.commons.io.ByteBufferbyte[]objectToByteBuffer(Object obj) byte[]objectToByteBuffer(Object obj, int estimatedSize) intvoidstart()protected ObjectvoidwriteObject(Object o, OutputStream out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.marshall.Marshaller
initialize, stop
-
Field Details
-
ctxRegistry
-
userMarshaller
protected org.infinispan.commons.marshall.Marshaller userMarshaller -
log
-
-
Constructor Details
-
AbstractInternalProtoStreamMarshaller
-
-
Method Details
-
getSerializationContext
public abstract org.infinispan.protostream.ImmutableSerializationContext getSerializationContext() -
start
public void start()- Specified by:
startin interfaceorg.infinispan.commons.marshall.Marshaller
-
getUserMarshaller
public org.infinispan.commons.marshall.Marshaller getUserMarshaller() -
objectToBuffer
- Specified by:
objectToBufferin interfaceorg.infinispan.commons.marshall.Marshaller
-
objectToByteBuffer
- Specified by:
objectToByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller
-
objectToByteBuffer
- Specified by:
objectToByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller
-
objectFromByteBuffer
- Specified by:
objectFromByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOException
-
objectFromByteBuffer
- Specified by:
objectFromByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOException
-
getBufferSizePredictor
- Specified by:
getBufferSizePredictorin interfaceorg.infinispan.commons.marshall.Marshaller
-
writeObject
- Specified by:
writeObjectin interfaceorg.infinispan.commons.marshall.StreamAwareMarshaller- Throws:
IOException
-
readObject
- Specified by:
readObjectin interfaceorg.infinispan.commons.marshall.StreamAwareMarshaller- Throws:
ClassNotFoundExceptionIOException
-
unwrapAndInit
-
isMarshallable
- Specified by:
isMarshallablein interfaceorg.infinispan.commons.marshall.Marshaller- Specified by:
isMarshallablein interfaceorg.infinispan.commons.marshall.StreamAwareMarshaller
-
sizeEstimate
- Specified by:
sizeEstimatein interfaceorg.infinispan.commons.marshall.StreamAwareMarshaller
-
mediaType
public org.infinispan.commons.dataconversion.MediaType mediaType()- Specified by:
mediaTypein interfaceorg.infinispan.commons.marshall.Marshaller- Specified by:
mediaTypein interfaceorg.infinispan.commons.marshall.StreamAwareMarshaller
-