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