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

@Internal public static enum ChannelMessageTarget.Type extends Enum<ChannelMessageTarget.Type>
The possible types of targets a channel message can have. Intended for internal differentiation only.
Since:
4.0
  • Enum Constant Details

    • ALL

      public static final ChannelMessageTarget.Type ALL
      All available components. No name is associated with this target.
    • NODE

      public static final ChannelMessageTarget.Type NODE
      One or multiple nodes in the network. A name can be supplied to select one particular target node.
    • SERVICE

      public static final ChannelMessageTarget.Type SERVICE
      One or multiple services in the network. A name can be supplied to select one particular target service.
    • SERVICES_BY_TASK

      public static final ChannelMessageTarget.Type SERVICES_BY_TASK
      All services in the network that are based on the provided task (identified by the required name).
    • SERVICES_BY_GROUP

      public static final ChannelMessageTarget.Type SERVICES_BY_GROUP
      All services in the network that are in on the provided group (identified by the required name).
    • SERVICES_BY_ENV

      public static final ChannelMessageTarget.Type SERVICES_BY_ENV
      All services in the network that are using the provided environment (identified by the required name).
    • SERVICES_WITH_PROPERTY

      public static final ChannelMessageTarget.Type SERVICES_WITH_PROPERTY
      All services in the network that have the given property key with any value (identified by the required name).
  • 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