Interface PersistenceMarshaller

All Superinterfaces:
org.infinispan.commons.marshall.Marshaller, org.infinispan.commons.marshall.StreamAwareMarshaller
All Known Implementing Classes:
PersistenceMarshallerImpl

public interface PersistenceMarshaller extends org.infinispan.commons.marshall.Marshaller, org.infinispan.commons.marshall.StreamAwareMarshaller
The marshaller that is responsible serializing/deserializing objects which are to be persisted.
Since:
10.0
Author:
Ryan Emerson
  • Method Summary

    Modifier and Type
    Method
    Description
    org.infinispan.commons.marshall.Marshaller
     
    void
    register(org.infinispan.protostream.SerializationContextInitializer initializer)
    Registers the schemas and marshallers defined by the provided SerializationContextInitializer with the PersistenceMarshaller's SerializationContext.

    Methods inherited from interface org.infinispan.commons.marshall.Marshaller

    getBufferSizePredictor, initialize, isMarshallable, mediaType, objectFromByteBuffer, objectFromByteBuffer, objectToBuffer, objectToByteBuffer, objectToByteBuffer, start, stop

    Methods inherited from interface org.infinispan.commons.marshall.StreamAwareMarshaller

    isMarshallable, mediaType, readObject, sizeEstimate, writeObject
  • Method Details

    • register

      void register(org.infinispan.protostream.SerializationContextInitializer initializer)
      Registers the schemas and marshallers defined by the provided SerializationContextInitializer with the PersistenceMarshaller's SerializationContext.
      Parameters:
      initializer - whose schemas and marshallers' will be registered with the PersistenceMarshaller SerializationContext
      Throws:
      NullPointerException - if initializer is null.
    • getUserMarshaller

      org.infinispan.commons.marshall.Marshaller getUserMarshaller()
      Returns:
      a custom marshaller configured by SerializationContext if one exists, otherwise the default ProtoStream based marshaller is returned.