Package org.infinispan.commons.marshall
Class ProtoStreamMarshaller
java.lang.Object
org.infinispan.commons.marshall.AbstractMarshaller
org.infinispan.commons.marshall.ImmutableProtoStreamMarshaller
org.infinispan.commons.marshall.ProtoStreamMarshaller
- All Implemented Interfaces:
Marshaller
Provides the starting point for implementing a
Marshaller
that uses Protobuf
encoding.- Since:
- 6.0
- Author:
- anistor@redhat.com
-
Field Summary
Fields inherited from class org.infinispan.commons.marshall.ImmutableProtoStreamMarshaller
serializationContext
Fields inherited from class org.infinispan.commons.marshall.AbstractMarshaller
marshallableTypeHints
-
Constructor Summary
ConstructorDescriptionProtoStreamMarshaller
(org.infinispan.protostream.SerializationContext serializationContext) -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.protostream.SerializationContext
static org.infinispan.protostream.SerializationContext
void
register
(org.infinispan.protostream.SerializationContextInitializer initializer) Methods inherited from class org.infinispan.commons.marshall.ImmutableProtoStreamMarshaller
isMarshallable, mediaType, objectFromByteBuffer, objectToBuffer
Methods inherited from class org.infinispan.commons.marshall.AbstractMarshaller
getBufferSizePredictor, objectFromByteBuffer, objectFromInputStream, objectToBuffer, objectToByteBuffer, objectToByteBuffer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.commons.marshall.Marshaller
initialize, start, stop
-
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 classImmutableProtoStreamMarshaller
-
newSerializationContext
public static org.infinispan.protostream.SerializationContext newSerializationContext()- Returns:
- a new
SerializationContext
withConfiguration.wrapCollectionElements()
enabled. - See Also:
-