public enum DocumentCommitStrategy extends Enum<DocumentCommitStrategy>
| Enum Constant and Description |
|---|
FORCE
After a change to an indexed document,
force a commit of the relevant shard and wait for that commit to finish,
to ensure changes are persisted to disk.
|
NONE
After a change to an indexed document,
simply let the global index commit policy follow its course,
without waiting for or forcing a commit.
|
| Modifier and Type | Method and Description |
|---|---|
static DocumentCommitStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentCommitStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentCommitStrategy NONE
If the backend fails before committing the changes to the document, the changes may be lost.
public static final DocumentCommitStrategy FORCE
public static DocumentCommitStrategy[] values()
for (DocumentCommitStrategy c : DocumentCommitStrategy.values()) System.out.println(c);
public static DocumentCommitStrategy 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 © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.