Package org.infinispan.protostream
Interface MessageMarshaller<T>
-
- All Superinterfaces:
BaseMarshaller<T>
@Deprecated public interface MessageMarshaller<T> extends BaseMarshaller<T>
Deprecated.since 4.3.1.Final. Will be removed in version 5. Please use annotation based marshallers instead. SeeAutoProtoSchemaBuilder
Contract to be implemented by manually written marshallers for Protobuf message (entity) types. The marshaller implementation must be stateless and thread-safe.- Since:
- 1.0
- Author:
- [email protected]
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
MessageMarshaller.ProtoStreamReader
Deprecated.A high-level interface for the wire encoding of a Protobuf stream that allows reading named (and typed) message fields.static interface
MessageMarshaller.ProtoStreamWriter
Deprecated.A high-level interface for the wire encoding of a Protobuf stream that allows writing named (and typed) message fields.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description T
readFrom(MessageMarshaller.ProtoStreamReader reader)
Deprecated.Read the fields written bywriteTo(ProtoStreamWriter, Object)
.void
writeTo(MessageMarshaller.ProtoStreamWriter writer, T t)
Deprecated.Write the fields defined in the schema.-
Methods inherited from interface org.infinispan.protostream.BaseMarshaller
getJavaClass, getTypeName
-
-
-
-
Method Detail
-
readFrom
T readFrom(MessageMarshaller.ProtoStreamReader reader) throws IOException
Deprecated.Read the fields written bywriteTo(ProtoStreamWriter, Object)
. Should read them in the exact same order as were written to ensure maximum performance. Not obeying the order will lead to poor performance and will cause warnings to be logged but will still work.- Throws:
IOException
-
writeTo
void writeTo(MessageMarshaller.ProtoStreamWriter writer, T t) throws IOException
Deprecated.Write the fields defined in the schema. Please establish a consistent order and always write them in the same order. Two common choices for ordering field writes are schema definition order and field number order.- Throws:
IOException
-
-