Class ProtoStreamMarshaller

  • All Implemented Interfaces:
    Marshaller

    public class ProtoStreamMarshaller
    extends BaseProtoStreamMarshaller
    A marshaller that uses Protocol Buffers.
    Since:
    6.0
    Author:
    anistor@redhat.com
    • Constructor Detail

      • ProtoStreamMarshaller

        public ProtoStreamMarshaller()
    • Method Detail

      • getSerializationContext

        public org.infinispan.protostream.SerializationContext getSerializationContext()
        Description copied from class: BaseProtoStreamMarshaller
        Subclasses must implement this method in order to provide a way to lookup the SerializationContext
        Specified by:
        getSerializationContext in class BaseProtoStreamMarshaller
        Returns:
        the SerializationContext instance to use
      • getSerializationContext

        public static org.infinispan.protostream.SerializationContext getSerializationContext​(RemoteCacheManager remoteCacheManager)
        Obtains the SerializationContext associated with the given remote cache manager.
        Parameters:
        remoteCacheManager - the remote cache manager (must not be null)
        Returns:
        the associated SerializationContext
        Throws:
        HotRodClientException - if the cache manager is not configured to use a ProtoStreamMarshaller