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
  • Method Details

    • 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

      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 marshaller
      V - 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