public enum ProcessingMode extends Enum<ProcessingMode>
A hint to the Brightpearl API whether the requests in a multi-message are safe to be executed concurrently. The
PARALLEL option should only be used when the requests are independent and isolated, and unlikely to compete
for the same resources. For example, when POSTing rows to the same order, the PARALLEL option is not suitable,
whereas when POSTing order status updates to separate orders, it should be safe.
Neither this client library nor Brightpearl provide guidance or restriction on the use of parallel mode, so care should be taken when using it. At the time of writing, parallel mode has little impact on response times so there may be no compelling reason to use it.
| Enum Constant and Description |
|---|
PARALLEL
Process the individual requests of a multi-message in parallel.
|
SEQUENTIAL
Process the individual requests of a multi-message in sequence.
|
| Modifier and Type | Method and Description |
|---|---|
static ProcessingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProcessingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProcessingMode PARALLEL
OnFailOption.STOP.public static final ProcessingMode SEQUENTIAL
public static ProcessingMode[] values()
for (ProcessingMode c : ProcessingMode.values()) System.out.println(c);
public static ProcessingMode 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 © 2014. All Rights Reserved.