public enum IndexingMode extends Enum<IndexingMode>
Enum Constant and Description |
---|
EVENT
Indexing is triggered automatically upon entity insertion, update etc.
|
MANUAL
Indexing is triggered explicitly.
|
Modifier and Type | Method and Description |
---|---|
static IndexingMode |
fromExternalRepresentation(String indexingMode)
Returns the
IndexingMode matching the given external representation as specified via
Environment.INDEXING_STRATEGY |
String |
toExternalRepresentation()
Returns the external representation of this indexing mode.
|
static IndexingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexingMode EVENT
public static final IndexingMode MANUAL
public static IndexingMode[] values()
for (IndexingMode c : IndexingMode.values()) System.out.println(c);
public static IndexingMode 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 nullpublic static IndexingMode fromExternalRepresentation(String indexingMode)
IndexingMode
matching the given external representation as specified via
Environment.INDEXING_STRATEGY
indexingMode
- the indexing mode external representationIndexingMode
public String toExternalRepresentation()
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved