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.StreamAwareMarshallerThe marshaller that is responsible serializing/deserializing objects which are to be persisted.- Since:
- 10.0
- Author:
- Ryan Emerson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.infinispan.commons.marshall.MarshallergetUserMarshaller()voidregister(org.infinispan.protostream.SerializationContextInitializer initializer)Registers the schemas and marshallers defined by the providedSerializationContextInitializerwith thePersistenceMarshaller'sSerializationContext.
-
-
-
Method Detail
-
register
void register(org.infinispan.protostream.SerializationContextInitializer initializer)
Registers the schemas and marshallers defined by the providedSerializationContextInitializerwith thePersistenceMarshaller'sSerializationContext.- Parameters:
initializer- whose schemas and marshallers' will be registered with thePersistenceMarshallerSerializationContext- Throws:
NullPointerException- if initializer is null.
-
getUserMarshaller
org.infinispan.commons.marshall.Marshaller getUserMarshaller()
- Returns:
- a custom marshaller configured by
SerializationContextif one exists, otherwise the default ProtoStream based marshaller is returned.
-
-