Enum SubscriptionState
- All Implemented Interfaces:
Serializable,Comparable<SubscriptionState>
The state of a subscription.
Subscriptions established when a new topic gets added, or the connection was established. If the subscribe call
returns an error for the subscription, the state will remain FAILED and it will not try to re-subscribe
while the connection is active.
When the session (connection) disconnects, all subscriptions will automatically be reset to UNSUBSCRIBED.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe topic could not be subscribed.The topic is subscribed.The topic is in the process of subscribing.The topic is not subscribed. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionStateReturns the enum constant of this type with the specified name.static SubscriptionState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNSUBSCRIBED
The topic is not subscribed. -
SUBSCRIBING
The topic is in the process of subscribing. -
SUBSCRIBED
The topic is subscribed. -
FAILED
The topic could not be subscribed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-