public class ExceptionMarshaller<E extends Throwable> extends Object implements ProtoStreamMarshaller<E>
| Constructor and Description |
|---|
ExceptionMarshaller(Class<E> exceptionClass) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends E> |
getJavaClass() |
E |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
E exception)
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,
E exception) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic E readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<E extends Throwable>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
E exception)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<E extends Throwable>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, E exception)
Predictablesize in interface Predictable<E extends Throwable>context - the serialization contextexception - the value to be marshalled.Copyright © 2020 JBoss by Red Hat. All rights reserved.