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<MutationResult> |
AsyncCollection.replace(String id,
Object content,
ReplaceOptions options)
Replaces a full document which already exists with custom options.
|
Mono<MutationResult> |
ReactiveCollection.replace(String id,
Object content,
ReplaceOptions options)
Replaces a full document which already exists with custom options.
|
MutationResult |
Collection.replace(String id,
Object content,
ReplaceOptions options)
Replaces a full document which already exists with custom options.
|
Modifier and Type | Method and Description |
---|---|
ReplaceOptions |
ReplaceOptions.cas(long cas)
Specifies a CAS value that will be taken into account on the server side for optimistic concurrency.
|
ReplaceOptions |
ReplaceOptions.expiry(Duration expiry)
Sets the expiry time for the document as a relative duration.
|
ReplaceOptions |
ReplaceOptions.expiry(Instant expiry)
Sets the expiry time for the document as a absolute duration.
|
static ReplaceOptions |
ReplaceOptions.replaceOptions() |
ReplaceOptions |
ReplaceOptions.transcoder(Transcoder transcoder)
Allows to specify a custom transcoder that is used to encode the content of the request.
|
Copyright © 2020 Couchbase, Inc.. All rights reserved.