public enum Consistency extends Enum<Consistency>
ViewScanConsistency (for the views) and
QueryScanConsistency (for the N1QL queries).| Enum Constant and Description |
|---|
EVENTUALLY_CONSISTENT
EVENTUALLY_CONSISTENT is
ViewScanConsistency.UPDATE_AFTER and QueryScanConsistency.NOT_BOUNDED |
READ_YOUR_OWN_WRITES
READ_YOUR_OWN_WRITES is
ViewScanConsistency.REQUEST_PLUS and QueryScanConsistency.REQUEST_PLUS |
STRONGLY_CONSISTENT
STRONGLY_CONSISTENT is
ViewScanConsistency.REQUEST_PLUS and QueryScanConsistency.REQUEST_PLUS |
UPDATE_AFTER
UPDATE_AFTER is
ViewScanConsistency.UPDATE_AFTER and QueryScanConsistency.NOT_BOUNDED |
| Modifier and Type | Field and Description |
|---|---|
static Consistency |
DEFAULT_CONSISTENCY
The static default Consistency (
READ_YOUR_OWN_WRITES). |
| Modifier and Type | Method and Description |
|---|---|
com.couchbase.client.java.query.QueryScanConsistency |
n1qlConsistency()
Returns the
consistency corresponding to this Consistency. |
static Consistency |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Consistency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
com.couchbase.client.java.view.ViewScanConsistency |
viewConsistency()
Returns the
view consistency corresponding to this Consistency. |
public static final Consistency READ_YOUR_OWN_WRITES
ViewScanConsistency.REQUEST_PLUS and QueryScanConsistency.REQUEST_PLUSpublic static final Consistency STRONGLY_CONSISTENT
ViewScanConsistency.REQUEST_PLUS and QueryScanConsistency.REQUEST_PLUSpublic static final Consistency UPDATE_AFTER
ViewScanConsistency.UPDATE_AFTER and QueryScanConsistency.NOT_BOUNDEDpublic static final Consistency EVENTUALLY_CONSISTENT
ViewScanConsistency.UPDATE_AFTER and QueryScanConsistency.NOT_BOUNDEDpublic static final Consistency DEFAULT_CONSISTENCY
READ_YOUR_OWN_WRITES).public static Consistency[] values()
for (Consistency c : Consistency.values()) System.out.println(c);
public static Consistency 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.java.view.ViewScanConsistency viewConsistency()
view consistency corresponding to this Consistency.public com.couchbase.client.java.query.QueryScanConsistency n1qlConsistency()
consistency corresponding to this Consistency.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.