public enum ByteBufferMarshaller extends Enum<ByteBufferMarshaller> implements ProtoStreamMarshaller<org.infinispan.commons.io.ByteBufferImpl>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends org.infinispan.commons.io.ByteBufferImpl> |
getJavaClass() |
org.infinispan.commons.io.ByteBufferImpl |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.commons.io.ByteBufferImpl buffer) |
static ByteBufferMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteBufferMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
org.infinispan.commons.io.ByteBufferImpl buffer) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic static final ByteBufferMarshaller INSTANCE
public static ByteBufferMarshaller[] values()
for (ByteBufferMarshaller c : ByteBufferMarshaller.values()) System.out.println(c);
public static ByteBufferMarshaller valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic org.infinispan.commons.io.ByteBufferImpl readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader)
throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<org.infinispan.commons.io.ByteBufferImpl>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
org.infinispan.commons.io.ByteBufferImpl buffer)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<org.infinispan.commons.io.ByteBufferImpl>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.commons.io.ByteBufferImpl buffer)
size in interface Predictable<org.infinispan.commons.io.ByteBufferImpl>public Class<? extends org.infinispan.commons.io.ByteBufferImpl> getJavaClass()
getJavaClass in interface org.infinispan.protostream.BaseMarshaller<org.infinispan.commons.io.ByteBufferImpl>Copyright © 2020 JBoss by Red Hat. All rights reserved.