public enum SubscriptionPreprocessMode extends Enum<SubscriptionPreprocessMode>
Subscriptions are managed in the
SubscriptionList provided to
Session.subscribe(SubscriptionList, Identity, String, SubscriptionPreprocessMode)
and
Session.resubscribe(SubscriptionList, int, String, SubscriptionPreprocessMode)| Enum Constant and Description |
|---|
FAIL_ON_FIRST_ERROR
In this mode, an exception is thrown on the first invalid entry in the
SubscriptionList, and the entire batch will be considered failed. |
RETURN_INDIVIDUAL_ERRORS
In this mode, instead of throwing exceptions, a list of
SubscriptionPreprocessError is returned, each representing an
error due to an invalid subscription in SubscriptionList. |
| Modifier and Type | Method and Description |
|---|---|
static SubscriptionPreprocessMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionPreprocessMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionPreprocessMode FAIL_ON_FIRST_ERROR
SubscriptionList, and the entire batch will be considered failed.
Otherwise, all the Subscriptions will move forward and a null
list of SubscriptionPreprocessError is returned.public static final SubscriptionPreprocessMode RETURN_INDIVIDUAL_ERRORS
SubscriptionPreprocessError is returned, each representing an
error due to an invalid subscription in SubscriptionList. The
valid subscriptions will move forward.public static SubscriptionPreprocessMode[] values()
for (SubscriptionPreprocessMode c : SubscriptionPreprocessMode.values()) System.out.println(c);
public static SubscriptionPreprocessMode 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 © 2022 Bloomberg L.P.. All rights reserved.