Class ProtoStreamMarshaller
- java.lang.Object
-
- org.infinispan.commons.marshall.AbstractMarshaller
-
- org.infinispan.query.remote.client.BaseProtoStreamMarshaller
-
- org.infinispan.client.hotrod.marshall.ProtoStreamMarshaller
-
- All Implemented Interfaces:
Marshaller
public class ProtoStreamMarshaller extends BaseProtoStreamMarshaller
A marshaller that uses Protocol Buffers.- Since:
- 6.0
- Author:
- anistor@redhat.com
-
-
Field Summary
-
Fields inherited from class org.infinispan.commons.marshall.AbstractMarshaller
marshallableTypeHints
-
-
Constructor Summary
Constructors Constructor Description ProtoStreamMarshaller()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.protostream.SerializationContext
getSerializationContext()
Subclasses must implement this method in order to provide a way to lookup theSerializationContext
static org.infinispan.protostream.SerializationContext
getSerializationContext(RemoteCacheManager remoteCacheManager)
A convenience method to return theSerializationContext
associated with theProtoStreamMarshaller
configured on the providedRemoteCacheManager
.-
Methods inherited from class org.infinispan.query.remote.client.BaseProtoStreamMarshaller
isMarshallable, mediaType, objectFromByteBuffer, objectToBuffer
-
Methods inherited from class org.infinispan.commons.marshall.AbstractMarshaller
getBufferSizePredictor, objectFromByteBuffer, objectFromInputStream, objectToBuffer, objectToByteBuffer, objectToByteBuffer
-
-
-
-
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 theSerializationContext
- Specified by:
getSerializationContext
in classBaseProtoStreamMarshaller
- Returns:
- the SerializationContext instance to use
-
getSerializationContext
public static org.infinispan.protostream.SerializationContext getSerializationContext(RemoteCacheManager remoteCacheManager)
A convenience method to return theSerializationContext
associated with theProtoStreamMarshaller
configured on the providedRemoteCacheManager
.- Returns:
- the associated
SerializationContext
- Throws:
HotRodClientException
- if the cache manager is not started or is not configured to use aProtoStreamMarshaller
-
-