Interface ProtoStreamOperation
- All Known Subinterfaces:
ProtoStreamReader, ProtoStreamSizeOperation, ProtoStreamWriter
- All Known Implementing Classes:
AbstractProtoStreamOperation, AbstractProtoStreamWriter, DefaultProtoStreamReader, DefaultProtoStreamSizeOperation, DefaultProtoStreamWriter, OffsetProtoStreamReader, OffsetProtoStreamWriter, SizeComputingProtoStreamWriter
public interface ProtoStreamOperation
Common interface of
ProtoStreamReader and ProtoStreamWriter.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn operation context. -
Method Summary
Modifier and TypeMethodDescriptiondefault <T, V extends T>
ProtoStreamMarshaller<T> findMarshaller(Class<V> javaClass) Returns a marshaller suitable of marshalling an object of the specified type.Returns the context of this operationorg.infinispan.protostream.ImmutableSerializationContextReturns the serialization context of the associated marshaller.
-
Method Details
-
getContext
ProtoStreamOperation.Context getContext()Returns the context of this operation- Returns:
- the operation context
-
getSerializationContext
org.infinispan.protostream.ImmutableSerializationContext getSerializationContext()Returns the serialization context of the associated marshaller.- Returns:
- an immutable serialization context
-
findMarshaller
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
-