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.upsert(String id,
Object content,
UpsertOptions options)
Upserts a full document which might or might not exist yet with custom options.
|
Mono<MutationResult> |
ReactiveCollection.upsert(String id,
Object content,
UpsertOptions options)
Upserts a full document which might or might not exist yet with custom options.
|
MutationResult |
Collection.upsert(String id,
Object content,
UpsertOptions options)
Upserts a full document which might or might not exist yet with custom options.
|
Modifier and Type | Method and Description |
---|---|
UpsertOptions |
UpsertOptions.expiry(Duration expiry)
Sets the expiry time for the document as a relative duration.
|
UpsertOptions |
UpsertOptions.expiry(Instant expiry)
Sets the expiry time for the document as a absolute duration.
|
UpsertOptions |
UpsertOptions.transcoder(Transcoder transcoder)
Allows to specify a custom transcoder that is used to encode the content of the request.
|
static UpsertOptions |
UpsertOptions.upsertOptions() |
UpsertOptions |
CommonDatastructureOptions.BuiltCommonDatastructureOptions.upsertOptions() |
Copyright © 2020 Couchbase, Inc.. All rights reserved.