public static enum Replica.Type extends Enum<Replica.Type>
| Enum Constant and Description |
|---|
NRT
Writes updates to transaction log and indexes locally.
|
PULL
Doesn’t index or writes to transaction log.
|
TLOG
Writes to transaction log, but not to index, uses replication.
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
leaderEligible |
| Modifier and Type | Method and Description |
|---|---|
static Replica.Type |
get(String name) |
static Replica.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Replica.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Replica.Type NRT
public static final Replica.Type TLOG
TLOG replica
can become leader (by first applying all local transaction log elements). If a replica is of
type TLOG but is also the leader, it will behave as a NRT. A shard
leader will forward updates to all active NRT and TLOG replicas.public static final Replica.Type PULL
NRT or TLOG replicas. PULL replicas can’t become shard leaders (i.e., if there
are only pull replicas in the collection at some point, updates will fail same as if there is
no leaders, queries continue to work), so they don’t even participate in elections.public static Replica.Type[] values()
for (Replica.Type c : Replica.Type.values()) System.out.println(c);
public static Replica.Type 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 Replica.Type get(String name)
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.