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:
GlobalMarshaller, 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 final org.infinispan.commons.marshall.MarshallableTypeHintsprotected booleanprotected org.infinispan.commons.marshall.Marshaller -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.marshall.BufferSizePredictorabstract org.infinispan.protostream.ImmutableSerializationContextorg.infinispan.commons.marshall.Marshallerbooleanprotected booleanorg.infinispan.commons.dataconversion.MediaTypeobjectFromByteBuffer(byte[] buf) objectFromByteBuffer(byte[] buf, int offset, int length) org.infinispan.commons.io.ByteBufferobjectToBuffer(Object obj) byte[]objectToByteBuffer(Object obj) byte[]objectToByteBuffer(Object obj, int estimatedSize) protected org.infinispan.protostream.RandomAccessOutputStreamobjectToOutputStream(Object obj, int estimatedSize) intvoidstart()protected ObjectvoidwriteObject(Object o, OutputStream out) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.marshall.Marshaller
initialize, stop
-
Field Details
-
marshallableTypeHints
protected final org.infinispan.commons.marshall.MarshallableTypeHints marshallableTypeHints -
ctxRegistry
-
userMarshaller
protected org.infinispan.commons.marshall.Marshaller userMarshaller -
skipUserMarshaller
protected boolean skipUserMarshaller -
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() -
objectToOutputStream
protected org.infinispan.protostream.RandomAccessOutputStream objectToOutputStream(Object obj, int estimatedSize) -
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
-
objectFromByteBuffer
- 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
-
isMarshallableWithProtoStream
-