T - the target type of the associated externalizerpublic class ExternalizerMarshaller<T> extends Object implements ProtoStreamMarshaller<T>
| Constructor and Description |
|---|
ExternalizerMarshaller(Externalizer<T> externalizer) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends T> |
getJavaClass() |
T |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
T value)
Returns the size of the buffer to use for marshalling the specified object, if known.
|
void |
writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
T object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic ExternalizerMarshaller(Externalizer<T> externalizer)
public Class<? extends T> getJavaClass()
getJavaClass in interface org.infinispan.protostream.BaseMarshaller<T>public T readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<T>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
T object)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<T>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, T value)
Predictablesize in interface Predictable<T>context - the serialization contextvalue - the value to be marshalled.Copyright © 2020 JBoss by Red Hat. All rights reserved.