Enum IdentifierScalarMarshaller

java.lang.Object
java.lang.Enum<IdentifierScalarMarshaller>
org.wildfly.clustering.session.cache.IdentifierScalarMarshaller
All Implemented Interfaces:
Serializable, Comparable<IdentifierScalarMarshaller>, java.lang.constant.Constable, org.wildfly.clustering.marshalling.protostream.Marshallable<String>, org.wildfly.clustering.marshalling.protostream.Readable<String>, org.wildfly.clustering.marshalling.protostream.ScalarMarshaller<String>, org.wildfly.clustering.marshalling.protostream.Writable<String>

public enum IdentifierScalarMarshaller extends Enum<IdentifierScalarMarshaller> implements org.wildfly.clustering.marshalling.protostream.ScalarMarshaller<String>
Scalar marshaller for a session identifier.
Author:
Paul Ferraro
  • Enum Constant Details

  • Method Details

    • values

      public static IdentifierScalarMarshaller[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static IdentifierScalarMarshaller valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • readFrom

      public String readFrom(org.wildfly.clustering.marshalling.protostream.ProtoStreamReader reader) throws IOException
      Specified by:
      readFrom in interface org.wildfly.clustering.marshalling.protostream.Readable<String>
      Throws:
      IOException
    • writeTo

      public void writeTo(org.wildfly.clustering.marshalling.protostream.ProtoStreamWriter writer, String id) throws IOException
      Specified by:
      writeTo in interface org.wildfly.clustering.marshalling.protostream.Writable<String>
      Throws:
      IOException
    • getJavaClass

      public Class<? extends String> getJavaClass()
      Specified by:
      getJavaClass in interface org.wildfly.clustering.marshalling.protostream.Marshallable<String>
    • getWireType

      public org.infinispan.protostream.descriptors.WireType getWireType()
      Specified by:
      getWireType in interface org.wildfly.clustering.marshalling.protostream.ScalarMarshaller<String>
    • toKeyMarshaller

      public <K extends org.wildfly.clustering.cache.Key<String>> org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller<K> toKeyMarshaller(Function<String,K> factory)