Interface ProtoStreamOperation
-
- All Known Subinterfaces:
ProtoStreamReader,ProtoStreamWriter
- All Known Implementing Classes:
AbstractProtoStreamWriter,DefaultProtoStreamOperation,DefaultProtoStreamReader,DefaultProtoStreamWriter,SizeComputingProtoStreamWriter
public interface ProtoStreamOperationCommon interface ofProtoStreamReaderandProtoStreamWriter.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceProtoStreamOperation.Context
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T,V extends T>
ProtoStreamMarshaller<T>findMarshaller(Class<V> javaClass)Returns a marshaller suitable of marshalling an object of the specified type.org.infinispan.protostream.ImmutableSerializationContextgetSerializationContext()Returns the serialization context of the associated marshaller.
-
-
-
Method Detail
-
getSerializationContext
org.infinispan.protostream.ImmutableSerializationContext getSerializationContext()
Returns the serialization context of the associated marshaller.- Returns:
- an immutable serialization context
-
findMarshaller
default <T,V extends T> ProtoStreamMarshaller<T> findMarshaller(Class<V> javaClass)
Returns a marshaller suitable of marshalling an object of the specified type.- Type Parameters:
T- the type of the associated marshallerV- the type of the object to be marshalled- Parameters:
javaClass- the type of the value to be written.- Returns:
- a marshaller suitable for the specified type
- Throws:
IllegalArgumentException- if no suitable marshaller exists
-
-