public static enum MirroredIndex.Strategy extends Enum<MirroredIndex.Strategy>
| Enum Constant and Description |
|---|
FALLBACK_ON_FAILURE
Search online, then fallback to offline on failure.
|
FALLBACK_ON_TIMEOUT
Fallback after a certain timeout.
|
OFFLINE_ONLY
Search offline only.
|
ONLINE_ONLY
Search online only.
|
| Modifier and Type | Method and Description |
|---|---|
static MirroredIndex.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MirroredIndex.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MirroredIndex.Strategy ONLINE_ONLY
public static final MirroredIndex.Strategy OFFLINE_ONLY
public static final MirroredIndex.Strategy FALLBACK_ON_FAILURE
public static final MirroredIndex.Strategy FALLBACK_ON_TIMEOUT
MirroredIndex.setOfflineFallbackTimeout(long).public static MirroredIndex.Strategy[] values()
for (MirroredIndex.Strategy c : MirroredIndex.Strategy.values()) System.out.println(c);
public static MirroredIndex.Strategy 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 null