Enum Class ChannelMessageTarget.Type

java.lang.Object
java.lang.Enum<ChannelMessageTarget.Type>
eu.cloudnetservice.driver.channel.ChannelMessageTarget.Type
All Implemented Interfaces:
Serializable, Comparable<ChannelMessageTarget.Type>, Constable
Enclosing class:
ChannelMessageTarget

public static enum ChannelMessageTarget.Type extends Enum<ChannelMessageTarget.Type>
Represents a type of network component this channel message targets.
Since:
4.0
  • Enum Constant Details

    • ALL

      public static final ChannelMessageTarget.Type ALL
      Represents all network components in the network. A set name or environment will always get ignored.
    • NODE

      public static final ChannelMessageTarget.Type NODE
      Represents a node within the network. A name can optionally be present to target a specific node.
    • SERVICE

      public static final ChannelMessageTarget.Type SERVICE
      Represents a service within the network. A name can optionally be present to target a specific node.
    • TASK

      public static final ChannelMessageTarget.Type TASK
      Represents all services within the network which are using the given task as its base. A name must be present.
    • GROUP

      public static final ChannelMessageTarget.Type GROUP
      Represents all services within the network which are in the given group. A name must be present.
    • ENVIRONMENT

      public static final ChannelMessageTarget.Type ENVIRONMENT
      Represents all services within the network which are using the given environment. An environment must be present.
  • Constructor Details

    • Type

      private Type()
  • Method Details

    • values

      public static ChannelMessageTarget.Type[] 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 ChannelMessageTarget.Type 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