public enum DocStoreMode extends Enum<DocStoreMode>
For some indexes or some transactions it can be beneficial to queue the event for later processing rather than look to update ElasticSearch at that time.
| Enum Constant and Description |
|---|
DEFAULT
The actual mode of QUEUE, UPDATE or IGNORE is set from the default configuration.
|
IGNORE
Ignore the event and not update the document store.
|
QUEUE
Add the event to the queue for processing later (delaying the update to the document store).
|
UPDATE
Update the document store when transaction succeeds.
|
| Modifier and Type | Method and Description |
|---|---|
static DocStoreMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocStoreMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocStoreMode QUEUE
public static final DocStoreMode UPDATE
public static final DocStoreMode IGNORE
This can be used on a index or for a transaction where you want to have more manual programmatic control over the updating of the document store. Say you want to IGNORE on a particular transaction and instead manually queue a bulk update.
public static final DocStoreMode DEFAULT
public static DocStoreMode[] values()
for (DocStoreMode c : DocStoreMode.values()) System.out.println(c);
public static DocStoreMode 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 © 2019. All rights reserved.