public interface ProtoStreamMarshallerProvider extends ProtoStreamMarshaller<Object>
ProtoStreamMarshaller.| Modifier and Type | Method and Description |
|---|---|
default <T> ProtoStreamMarshaller<T> |
cast(Class<T> type) |
default Class<? extends Object> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
ProtoStreamMarshaller<?> |
getMarshaller() |
default Object |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
default Object |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
default OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
Object value)
Predicts the size of the specified object that would be written via the
Marshallable.writeTo(ProtoStreamWriter, Object) method. |
default void |
writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Object object) |
default void |
writeTo(ProtoStreamWriter writer,
Object value)
Writes the specified object to the specified writer.
|
getTypeNameProtoStreamMarshaller<?> getMarshaller()
default Object readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<Object>reader - a ProtoStream readerIOException - if the object could not be readdefault void writeTo(ProtoStreamWriter writer, Object value) throws IOException
MarshallablewriteTo in interface Marshallable<Object>writer - a ProtoStream writervalue - the object to be writtenIOException - if the object could not be writtendefault Object readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface ProtoStreamMarshaller<Object>readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<Object>IOExceptiondefault void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Object object)
throws IOException
writeTo in interface ProtoStreamMarshaller<Object>writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<Object>IOExceptiondefault OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, Object value)
MarshallableMarshallable.writeTo(ProtoStreamWriter, Object) method.size in interface Marshallable<Object>context - a serialization contextvalue - the object whose size is to be determineddefault Class<? extends Object> getJavaClass()
MarshallablegetJavaClass in interface org.infinispan.protostream.BaseMarshaller<Object>getJavaClass in interface Marshallable<Object>default <T> ProtoStreamMarshaller<T> cast(Class<T> type)
Copyright © 2021 JBoss by Red Hat. All rights reserved.