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
Represents a type of network component this channel message targets.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents all network components in the network.Represents all services within the network which are using the given environment.Represents all services within the network which are in the given group.Represents a node within the network.Represents a service within the network.Represents all services within the network which are using the given task as its base. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelMessageTarget.TypeReturns the enum constant of this class with the specified name.static ChannelMessageTarget.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
Represents all network components in the network. A set name or environment will always get ignored. -
NODE
Represents a node within the network. A name can optionally be present to target a specific node. -
SERVICE
Represents a service within the network. A name can optionally be present to target a specific node. -
TASK
Represents all services within the network which are using the given task as its base. A name must be present. -
GROUP
Represents all services within the network which are in the given group. A name must be present. -
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
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
-