Enum Class SubscriptionHandler.Command
java.lang.Object
java.lang.Enum<SubscriptionHandler.Command>
org.opentrafficsim.sim0mq.publisher.SubscriptionHandler.Command
- All Implemented Interfaces:
Serializable
,Comparable<SubscriptionHandler.Command>
,Constable
- Enclosing class:
- SubscriptionHandler
The commands that a SubscriptionHandler understands.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionGet the address meta data.Get the set of implemented commands (must - itself - always be implemented).Get current set (if a collection), c.q. state (if properties of one object).Get the output of the IdSource.Get the result meta data.Subscribe to add events.Subscribe to change events.Subscribe to remove events.Unsubscribe to add events.Unsubscribe to change events.Unsubscribe to remove events. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionHandler.Command
Returns the enum constant of this class with the specified name.static SubscriptionHandler.Command[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUBSCRIBE_TO_ADD
Subscribe to add events. -
SUBSCRIBE_TO_REMOVE
Subscribe to remove events. -
SUBSCRIBE_TO_CHANGE
Subscribe to change events. -
UNSUBSCRIBE_FROM_ADD
Unsubscribe to add events. -
UNSUBSCRIBE_FROM_REMOVE
Unsubscribe to remove events. -
UNSUBSCRIBE_FROM_CHANGE
Unsubscribe to change events. -
GET_CURRENT
Get current set (if a collection), c.q. state (if properties of one object). -
GET_ADDRESS_META_DATA
Get the address meta data. -
GET_RESULT_META_DATA
Get the result meta data. -
GET_LIST
Get the output of the IdSource. -
GET_COMMANDS
Get the set of implemented commands (must - itself - always be implemented).
-
-
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
-