Enum Class VersionMarshaller

java.lang.Object
java.lang.Enum<VersionMarshaller>
org.wildfly.clustering.server.infinispan.VersionMarshaller
All Implemented Interfaces:
Serializable, Comparable<VersionMarshaller>, Constable, org.infinispan.protostream.BaseMarshaller<org.infinispan.remoting.transport.NodeVersion>, org.infinispan.protostream.ProtobufTagMarshaller<org.infinispan.remoting.transport.NodeVersion>, Marshallable<org.infinispan.remoting.transport.NodeVersion>, ProtoStreamMarshaller<org.infinispan.remoting.transport.NodeVersion>, Readable<org.infinispan.remoting.transport.NodeVersion>, Writable<org.infinispan.remoting.transport.NodeVersion>

public enum VersionMarshaller extends Enum<VersionMarshaller> implements ProtoStreamMarshaller<org.infinispan.remoting.transport.NodeVersion>
ProtoStream marshaller for a NodeVersion.
Author:
Paul Ferraro
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>

    Nested classes/interfaces inherited from interface org.infinispan.protostream.ProtobufTagMarshaller

    org.infinispan.protostream.ProtobufTagMarshaller.OperationContext, org.infinispan.protostream.ProtobufTagMarshaller.ReadContext, org.infinispan.protostream.ProtobufTagMarshaller.WriteContext
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Singleton instance
  • Field Summary

    Fields inherited from interface org.infinispan.protostream.BaseMarshaller

    EMPTY
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends org.infinispan.remoting.transport.NodeVersion>
    Returns the type of object handled by this marshallable instance.
    org.infinispan.remoting.transport.NodeVersion
    Reads an object from the specified reader.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.
    void
    writeTo(ProtoStreamWriter writer, org.infinispan.remoting.transport.NodeVersion version)
    Writes the specified object to the specified writer.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.infinispan.protostream.BaseMarshaller

    getSubClassNames

    Methods inherited from interface Marshallable

    size

    Methods inherited from interface ProtoStreamMarshaller

    getTypeName, read, wrap, wrap, write
  • Enum Constant Details

  • Method Details

    • values

      public static VersionMarshaller[] 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 VersionMarshaller 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
    • getJavaClass

      public Class<? extends org.infinispan.remoting.transport.NodeVersion> getJavaClass()
      Description copied from interface: Marshallable
      Returns the type of object handled by this marshallable instance.
      Specified by:
      getJavaClass in interface org.infinispan.protostream.BaseMarshaller<org.infinispan.remoting.transport.NodeVersion>
      Specified by:
      getJavaClass in interface Marshallable<org.infinispan.remoting.transport.NodeVersion>
      Returns:
      the type of object handled by this marshallable instance.
    • readFrom

      public org.infinispan.remoting.transport.NodeVersion readFrom(ProtoStreamReader reader) throws IOException
      Description copied from interface: Readable
      Reads an object from the specified reader.
      Specified by:
      readFrom in interface Readable<org.infinispan.remoting.transport.NodeVersion>
      Parameters:
      reader - a ProtoStream reader
      Returns:
      the read object
      Throws:
      IOException - if the object could not be read
    • writeTo

      public void writeTo(ProtoStreamWriter writer, org.infinispan.remoting.transport.NodeVersion version) throws IOException
      Description copied from interface: Writable
      Writes the specified object to the specified writer.
      Specified by:
      writeTo in interface Writable<org.infinispan.remoting.transport.NodeVersion>
      Parameters:
      writer - a ProtoStream writer
      version - the object to be written
      Throws:
      IOException - if the object could not be written