Annotation Interface WithConsistency


@Documented @Target(METHOD) @Retention(RUNTIME) public @interface WithConsistency
Annotation to set the scan consistency of N1QL queries with Couchbase. This controls whether couchbase waits for all changes to be processed by an index or whether stale results are acceptable.

If not set, the default consistency set in AbstractCouchbaseConfiguration.getDefaultConsistency() is used.

Author:
Johannes Jasper.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    com.couchbase.client.java.query.QueryScanConsistency
     
  • Element Details

    • value

      com.couchbase.client.java.query.QueryScanConsistency value