Class ClassicHelper
java.lang.Object
com.couchbase.client.core.classic.ClassicHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends CoreMutationResult>
CompletableFuture<T> 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>
CoreAsyncResponse<T> newAsyncResponse
(Request<RES> request, CompletableFuture<T> future) Returns a new async response whose cancellation task callsRequest.cancel(CancellationReason)
.static void
setClientContext
(Request<?> request, CoreCommonOptions common)
-
Method Details
-
setClientContext
-
newAsyncResponse
public static <T,RES extends Response> CoreAsyncResponse<T> newAsyncResponse(Request<RES> request, CompletableFuture<T> future) Returns a new async response whose cancellation task callsRequest.cancel(CancellationReason)
. -
maybeWrapWithLegacyDurability
public static <T extends CoreMutationResult> CompletableFuture<T> 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.
-