public enum ReplicateTo extends Enum<ReplicateTo>
Defines the possible replication constraints to observe.
Enum Constant and Description |
---|
NONE
Do not observe any replication constraint.
|
ONE
Observe replication to one replica.
|
THREE
Observe replication to three replicas.
|
TWO
Observe replication to two replicas.
|
Modifier and Type | Method and Description |
---|---|
boolean |
touchesReplica()
Identifies if this enum property will touch a replica or just the master.
|
com.couchbase.client.core.message.observe.Observe.ReplicateTo |
value()
Returns the actual internal replication representation for the enum.
|
static ReplicateTo |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicateTo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicateTo NONE
public static final ReplicateTo ONE
public static final ReplicateTo TWO
public static final ReplicateTo THREE
public static ReplicateTo[] values()
for (ReplicateTo c : ReplicateTo.values()) System.out.println(c);
public static ReplicateTo 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 com.couchbase.client.core.message.observe.Observe.ReplicateTo value()
Returns the actual internal replication representation for the enum.
public boolean touchesReplica()
Identifies if this enum property will touch a replica or just the master.
Copyright © 2015 Couchbase, Inc.. All rights reserved.