Class ProtoStreamMarshaller

All Implemented Interfaces:
Marshaller

public class ProtoStreamMarshaller extends ImmutableProtoStreamMarshaller
Provides the starting point for implementing a Marshaller that uses Protobuf encoding.
Since:
6.0
Author:
anistor@redhat.com
  • Constructor Details

    • ProtoStreamMarshaller

      public ProtoStreamMarshaller()
    • ProtoStreamMarshaller

      public ProtoStreamMarshaller(org.infinispan.protostream.SerializationContext serializationContext)
  • Method Details

    • register

      public void register(org.infinispan.protostream.SerializationContextInitializer initializer)
    • getSerializationContext

      public org.infinispan.protostream.SerializationContext getSerializationContext()
      Overrides:
      getSerializationContext in class ImmutableProtoStreamMarshaller
    • newSerializationContext

      public static org.infinispan.protostream.SerializationContext newSerializationContext()
      Returns:
      a new SerializationContext with Configuration.wrapCollectionElements() enabled.
      See Also:
      • Configuration.Builder.wrapCollectionElements(boolean)