@Stability.Internal public class ClassicCoreKvBinaryOps extends Object implements CoreKvBinaryOps
| Constructor and Description |
|---|
ClassicCoreKvBinaryOps(Core core,
CoreKeyspace keyspace) |
| Modifier and Type | Method and Description |
|---|---|
CoreAsyncResponse<CoreMutationResult> |
appendAsync(String id,
byte[] content,
CoreCommonOptions options,
long cas,
CoreDurability durability)
Appends binary content to the document with custom options.
|
CoreAsyncResponse<CoreCounterResult> |
decrementAsync(String id,
CoreCommonOptions options,
CoreExpiry expiry,
long delta,
Optional<Long> initial,
CoreDurability durability)
Decrements the counter document by one or the number defined in the options.
|
CoreAsyncResponse<CoreCounterResult> |
incrementAsync(String id,
CoreCommonOptions options,
CoreExpiry expiry,
long delta,
Optional<Long> initial,
CoreDurability durability)
Increments the counter document by one or the number defined in the options.
|
CoreAsyncResponse<CoreMutationResult> |
prependAsync(String id,
byte[] content,
CoreCommonOptions options,
long cas,
CoreDurability durability)
Prepends binary content to the document with custom options.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendBlocking, appendReactive, decrementBlocking, decrementReactive, incrementBlocking, incrementReactive, prependBlocking, prependReactivepublic ClassicCoreKvBinaryOps(Core core, CoreKeyspace keyspace)
public CoreAsyncResponse<CoreMutationResult> appendAsync(String id, byte[] content, CoreCommonOptions options, long cas, CoreDurability durability)
appendAsync in interface CoreKvBinaryOpsid - the document id which is used to uniquely identify it.content - the binary content to append to the document.options - custom options to customize the append behavior.CoreMutationResult once completed.DocumentNotFoundException - the given document id is not found in the collection.CasMismatchException - if the document has been concurrently modified on the server.TimeoutException - if the operation times out before getting a result.CouchbaseException - for all other error reasons (acts as a base type and catch-all).public CoreAsyncResponse<CoreMutationResult> prependAsync(String id, byte[] content, CoreCommonOptions options, long cas, CoreDurability durability)
prependAsync in interface CoreKvBinaryOpsid - the document id which is used to uniquely identify it.content - the binary content to append to the document.options - custom options to customize the prepend behavior.CoreMutationResult once completed.DocumentNotFoundException - the given document id is not found in the collection.CasMismatchException - if the document has been concurrently modified on the server.TimeoutException - if the operation times out before getting a result.CouchbaseException - for all other error reasons (acts as a base type and catch-all).public CoreAsyncResponse<CoreCounterResult> incrementAsync(String id, CoreCommonOptions options, CoreExpiry expiry, long delta, Optional<Long> initial, CoreDurability durability)
incrementAsync in interface CoreKvBinaryOpsid - the document id which is used to uniquely identify it.options - custom options to customize the increment behavior.CoreCounterResult once completed.DocumentNotFoundException - the given document id is not found in the collection.TimeoutException - if the operation times out before getting a result.CouchbaseException - for all other error reasons (acts as a base type and catch-all).public CoreAsyncResponse<CoreCounterResult> decrementAsync(String id, CoreCommonOptions options, CoreExpiry expiry, long delta, Optional<Long> initial, CoreDurability durability)
decrementAsync in interface CoreKvBinaryOpsid - the document id which is used to uniquely identify it.options - custom options to customize the decrement behavior.CoreCounterResult once completed.DocumentNotFoundException - the given document id is not found in the collection.TimeoutException - if the operation times out before getting a result.CouchbaseException - for all other error reasons (acts as a base type and catch-all).Copyright © 2024 Couchbase, Inc.. All rights reserved.