barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

com.barchart.udt.nio
Enum KindUDT

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

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 Summary
ACCEPTOR
          Server mode: listens and accepts connections; generates CONNECTOR as a result of SocketUDT.accept()
CONNECTOR
          Client mode: channel which initiates connections to servers; options are user-provided.
RENDEZVOUS
          Rendezvous mode: symmetric peer channel on each side of the connection.
 
Method Summary
static KindUDT valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KindUDT[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ACCEPTOR

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

See Also:
ServerSocketChannelUDT

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:
SocketChannelUDT

RENDEZVOUS

public static final KindUDT RENDEZVOUS
Rendezvous mode: symmetric peer channel on each side of the connection.

See Also:
RendezvousChannelUDT
Method Detail

values

public static KindUDT[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (KindUDT c : KindUDT.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

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

barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

Copyright © 2009-2013 Barchart, Inc.. All Rights Reserved.