Package tigase.pubsub
Enum Class Subscription
- All Implemented Interfaces:
Serializable
,Comparable<Subscription>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe node MUST NOT send event notifications or payloads to the Entity.An entity has requested to subscribe to a node and the request has not yet been approved by a node owner.An entity is subscribed to a node.An entity has subscribed but its subscription options have not yet been configured. -
Method Summary
Modifier and TypeMethodDescriptionstatic Subscription
Returns the enum constant of this class with the specified name.static Subscription[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
none
The node MUST NOT send event notifications or payloads to the Entity. -
pending
An entity has requested to subscribe to a node and the request has not yet been approved by a node owner. The node MUST NOT send event notifications or payloads to the entity while it is in this state. -
subscribed
An entity is subscribed to a node. The node MUST send all event notifications (and, if configured, payloads) to the entity while it is in this state (subject to subscriber configuration and content filtering). -
unconfigured
An entity has subscribed but its subscription options have not yet been configured. The node MAY send event notifications or payloads to the entity while it is in this state. The service MAY timeout unconfigured subscriptions.
-
-
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
-