public enum SubscriptionState extends Enum<SubscriptionState>
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 and Description |
---|
FAILED
The topic could not be subscribed.
|
SUBSCRIBED
The topic is subscribed.
|
SUBSCRIBING
The topic is in the process of subscribing.
|
UNSUBSCRIBED
The topic is not subscribed.
|
Modifier and Type | Method and Description |
---|---|
static SubscriptionState |
valueOf(String name)
Returns 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.
|
public static final SubscriptionState UNSUBSCRIBED
public static final SubscriptionState SUBSCRIBING
public static final SubscriptionState SUBSCRIBED
public static final SubscriptionState FAILED
public static SubscriptionState[] values()
for (SubscriptionState c : SubscriptionState.values()) System.out.println(c);
public static SubscriptionState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018–2021 SmallRye. All rights reserved.