@Stability.Internal public class ClassicHelper extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends CoreMutationResult> |
maybeWrapWithLegacyDurability(CompletableFuture<T> input,
String key,
CoreDurability durability,
Core core,
KeyValueRequest<?> request)
Helper method to wrap a mutation result to perform legacy durability requirements if needed.
|
static <T,RES extends Response> |
newAsyncResponse(Request<RES> request,
CompletableFuture<T> future)
Returns a new async response whose cancellation task calls
Request.cancel(CancellationReason) . |
static void |
setClientContext(Request<?> request,
CoreCommonOptions common) |
public static void setClientContext(Request<?> request, CoreCommonOptions common)
public static <T,RES extends Response> CoreAsyncResponse<T> newAsyncResponse(Request<RES> request, CompletableFuture<T> future)
Request.cancel(CancellationReason)
.public static <T extends CoreMutationResult> CompletableFuture<T> maybeWrapWithLegacyDurability(CompletableFuture<T> input, String key, CoreDurability durability, Core core, KeyValueRequest<?> request)
Copyright © 2024 Couchbase, Inc.. All rights reserved.