Enum Class IdentifierMarshaller

java.lang.Object
java.lang.Enum<IdentifierMarshaller>
org.wildfly.clustering.session.cache.IdentifierMarshaller
All Implemented Interfaces:
Serializable, Comparable<IdentifierMarshaller>, 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 IdentifierMarshaller extends Enum<IdentifierMarshaller> 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 IdentifierMarshaller[] 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

      public static IdentifierMarshaller valueOf(String name)
      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 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>
    • getKeyMarshaller

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