public enum SubscriptionOpeningStrategy extends Enum<SubscriptionOpeningStrategy>
Enum Constant and Description |
---|
FORCE_AND_KEEP
The client opening a subscription with Forced strategy set will always get it and keep it open until another client with the same strategy gets connected.
|
OPEN_IF_FREE
The client will successfully open a subscription only if there isn't any other currently connected client.
|
TAKE_OVER
The connecting client will successfully open a subscription even if there is another active subscription's consumer.
|
WAIT_FOR_FREE
If the client currently cannot open the subscription because it is used by another client then it will subscribe Changes API to be notified about subscription status changes.
|
Modifier and Type | Method and Description |
---|---|
static SubscriptionOpeningStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionOpeningStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionOpeningStrategy OPEN_IF_FREE
public static final SubscriptionOpeningStrategy TAKE_OVER
public static final SubscriptionOpeningStrategy FORCE_AND_KEEP
public static final SubscriptionOpeningStrategy WAIT_FOR_FREE
public static SubscriptionOpeningStrategy[] values()
for (SubscriptionOpeningStrategy c : SubscriptionOpeningStrategy.values()) System.out.println(c);
public static SubscriptionOpeningStrategy 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 © 2016. All Rights Reserved.