Enum Class IdentifierScalarMarshaller
java.lang.Object
java.lang.Enum<IdentifierScalarMarshaller>
org.wildfly.clustering.session.cache.IdentifierScalarMarshaller
- All Implemented Interfaces:
Serializable,Comparable<IdentifierScalarMarshaller>,Constable,Marshallable<String>,Readable<String>,ScalarMarshaller<String>,Writable<String>
public enum IdentifierScalarMarshaller
extends Enum<IdentifierScalarMarshaller>
implements ScalarMarshaller<String>
Scalar marshaller for a session identifier.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of object handled by this marshallable instance.org.infinispan.protostream.descriptors.WireTypeReturns the wire type of the scalar value written by this marshaller.readFrom(ProtoStreamReader reader) Reads an object from the specified reader.<K extends Key<String>>
ProtoStreamMarshaller<K> toKeyMarshaller(Function<String, K> factory) static IdentifierScalarMarshallerReturns the enum constant of this class with the specified name.static IdentifierScalarMarshaller[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwriteTo(ProtoStreamWriter writer, String id) Writes the specified object to the specified writer.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.wildfly.clustering.marshalling.protostream.Marshallable
sizeMethods inherited from interface org.wildfly.clustering.marshalling.protostream.ScalarMarshaller
toMarshaller, toMarshaller, toMarshaller, toMarshaller
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
readFrom
Description copied from interface:ReadableReads an object from the specified reader.- Specified by:
readFromin interfaceReadable<String>- Parameters:
reader- a ProtoStream reader- Returns:
- the read object
- Throws:
IOException- if the object could not be read
-
writeTo
Description copied from interface:WritableWrites the specified object to the specified writer.- Specified by:
writeToin interfaceWritable<String>- Parameters:
writer- a ProtoStream writerid- the object to be written- Throws:
IOException- if the object could not be written
-
getJavaClass
Description copied from interface:MarshallableReturns the type of object handled by this marshallable instance.- Specified by:
getJavaClassin interfaceMarshallable<String>- Returns:
- the type of object handled by this marshallable instance.
-
getWireType
public org.infinispan.protostream.descriptors.WireType getWireType()Description copied from interface:ScalarMarshallerReturns the wire type of the scalar value written by this marshaller.- Specified by:
getWireTypein interfaceScalarMarshaller<String>- Returns:
- the wire type of the scalar value written by this marshaller.
-
toKeyMarshaller
-