Package | Description |
---|---|
com.couchbase.client.java |
Holds all classes that are needed for the Couchbase Java SDK.
|
com.couchbase.client.java.kv |
Namespace for various kv-service related classes.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<CounterResult> |
AsyncBinaryCollection.increment(String id,
IncrementOptions options)
Increments the counter document by one or the number defined in the options.
|
Mono<CounterResult> |
ReactiveBinaryCollection.increment(String id,
IncrementOptions options)
Increments the counter document by one or the number defined in the options.
|
CounterResult |
BinaryCollection.increment(String id,
IncrementOptions options)
Increments the counter document by one or the number defined in the options.
|
Modifier and Type | Method and Description |
---|---|
IncrementOptions |
IncrementOptions.cas(long cas)
Specifies a CAS value that will be taken into account on the server side for optimistic concurrency.
|
IncrementOptions |
IncrementOptions.delta(long delta)
The amount of which the document value should be incremented.
|
IncrementOptions |
IncrementOptions.expiry(Duration expiry)
Set a custom expiration time for the document (by default no expiry is set).
|
static IncrementOptions |
IncrementOptions.incrementOptions()
Creates a new
IncrementOptions . |
IncrementOptions |
IncrementOptions.initial(long initial)
The initial value that should be used if the document has not been created yet.
|
Copyright © 2020 Couchbase, Inc.. All rights reserved.