Enum Class KindUDT

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

public enum KindUDT extends Enum<KindUDT>
UDT channel role type, or kind.

TypeUDT means stream (byte oriented) vs datagram (message oriented).

KindUDT gives distinction between server vs client vs peer.

  • Enum Constant Details

    • ACCEPTOR

      public static final KindUDT ACCEPTOR
      Server mode: listens and accepts connections; generates CONNECTOR as a result of SocketUDT.accept()
      See Also:
    • CONNECTOR

      public static final KindUDT CONNECTOR
      Client mode: channel which initiates connections to servers; options are user-provided.

      Server mode: channel which is a result of accept(); inherits options from parent ACCEPTOR.

      See Also:
    • RENDEZVOUS

      public static final KindUDT RENDEZVOUS
      Rendezvous mode: symmetric peer channel on each side of the connection.
      See Also:
  • Constructor Details

    • KindUDT

      private KindUDT()
  • Method Details

    • values

      public static KindUDT[] 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 KindUDT 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