Enum Class StatusUDT

java.lang.Object
java.lang.Enum<StatusUDT>
com.barchart.udt.StatusUDT
All Implemented Interfaces:
Serializable, Comparable<StatusUDT>, Constable

public enum StatusUDT extends Enum<StatusUDT>
status of underlying UDT native socket as reported by SocketUDT.getStatus0()

keep in sync with udt.h UDTSTATUS enum; see:

"enum UDTSTATUS { INIT = 1, OPENED = 2, LISTENING = 3, CONNECTING = 4, CONNECTED = 5, BROKEN = 6, CLOSING = 7, CLOSED = 8, NONEXIST = 9 };"

  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    acceptor socket after close(), connector socket after remote unreachable
    connector socket after close() is done
    connector socket while close() is in progress
    bound and connected connector socket
    bound connector socket trying to connect
    newly created socket; both connector and acceptor
    bound and listening acceptor socket
    trying to check status on socket that was closed and removed
    bound socket; both connector and acceptor
    non udt constant, catch-all value
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    protected static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    StatusUDT(int code)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final StatusUDT
    from(int code)
     
    int
     
    static StatusUDT
    Returns the enum constant of this class with the specified name.
    static StatusUDT[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • INIT

      public static final StatusUDT INIT
      newly created socket; both connector and acceptor
    • OPENED

      public static final StatusUDT OPENED
      bound socket; both connector and acceptor
    • LISTENING

      public static final StatusUDT LISTENING
      bound and listening acceptor socket
    • CONNECTING

      public static final StatusUDT CONNECTING
      bound connector socket trying to connect
    • CONNECTED

      public static final StatusUDT CONNECTED
      bound and connected connector socket
    • BROKEN

      public static final StatusUDT BROKEN
      acceptor socket after close(), connector socket after remote unreachable
    • CLOSING

      public static final StatusUDT CLOSING
      connector socket while close() is in progress
    • CLOSED

      public static final StatusUDT CLOSED
      connector socket after close() is done
    • NONEXIST

      public static final StatusUDT NONEXIST
      trying to check status on socket that was closed and removed
    • UNKNOWN

      public static final StatusUDT UNKNOWN
      non udt constant, catch-all value
  • Field Details

    • log

      protected static final org.slf4j.Logger log
    • code

      private final int code
  • Constructor Details

    • StatusUDT

      private StatusUDT(int code)
  • Method Details

    • values

      public static StatusUDT[] 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 StatusUDT 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
    • getCode

      public int getCode()
    • from

      public static final StatusUDT from(int code)