Enum Class ChannelType
- All Implemented Interfaces:
Serializable, Comparable<ChannelType>, Constable
Represents a type of channel. A client channel is a channel which connects from or to a client. For instance, all
channels opened by a wrapper are client channels. On the other hand, a server channel represents a channel to a
network server. All wrapper connections to the server are handled as server channels.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA channel which connects from or to a client.All channels which are connecting to a server. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelTypeReturns the enum constant of this class with the specified name.static ChannelType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENT_CHANNEL
A channel which connects from or to a client. -
SERVER_CHANNEL
All channels which are connecting to a server.
-
-
Constructor Details
-
ChannelType
private ChannelType()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-