Enum Class ChannelType

java.lang.Object
java.lang.Enum<ChannelType>
eu.cloudnetservice.driver.event.events.network.ChannelType
All Implemented Interfaces:
Serializable, Comparable<ChannelType>, Constable

public enum ChannelType extends Enum<ChannelType>
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
  • Enum Constant Details

    • CLIENT_CHANNEL

      public static final ChannelType CLIENT_CHANNEL
      A channel which connects from or to a client.
    • SERVER_CHANNEL

      public static final ChannelType SERVER_CHANNEL
      All channels which are connecting to a server.
  • Constructor Details

    • ChannelType

      private ChannelType()
  • Method Details

    • values

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