public interface MarshallerProvider extends ProtoStreamMarshaller<Object>
ProtoStreamMarshaller.| Modifier and Type | Method and Description |
|---|---|
default <T> ProtoStreamMarshaller<T> |
cast(Class<T> type) |
default Class<? extends Object> |
getJavaClass() |
ProtoStreamMarshaller<?> |
getMarshaller() |
default Object |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
default OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
Object value)
Returns the size of the buffer to use for marshalling the specified object, if known.
|
default void |
writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Object object) |
getTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizeProtoStreamMarshaller<?> getMarshaller()
default Object readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
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 org.infinispan.protostream.RawProtobufMarshaller<Object>IOExceptiondefault OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, Object value)
Predictablesize in interface Predictable<Object>context - the serialization contextvalue - the value to be marshalled.default Class<? extends Object> getJavaClass()
getJavaClass in interface org.infinispan.protostream.BaseMarshaller<Object>default <T> ProtoStreamMarshaller<T> cast(Class<T> type)
Copyright © 2020 JBoss by Red Hat. All rights reserved.