@Stability.Internal public enum GetAccessor extends Enum<GetAccessor>
Modifier and Type | Method and Description |
---|---|
static CompletableFuture<GetResult> |
get(Core core,
GetRequest request,
Transcoder transcoder)
Takes a
GetRequest and dispatches, converts and returns the result. |
static CompletableFuture<GetResult> |
getAndLock(Core core,
GetAndLockRequest request,
Transcoder transcoder)
Takes a
GetAndLockRequest and dispatches, converts and returns the result. |
static CompletableFuture<GetResult> |
getAndTouch(Core core,
GetAndTouchRequest request,
Transcoder transcoder) |
static CompletableFuture<GetResult> |
subdocGet(Core core,
SubdocGetRequest request,
Transcoder transcoder) |
static GetAccessor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GetAccessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static GetAccessor[] values()
for (GetAccessor c : GetAccessor.values()) System.out.println(c);
public static GetAccessor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CompletableFuture<GetResult> get(Core core, GetRequest request, Transcoder transcoder)
GetRequest
and dispatches, converts and returns the result.core
- the core reference to dispatch into.request
- the request to dispatch and convert once a response arrives.transcoder
- the transcoder used to decode the response body.CompletableFuture
once the document is fetched and decoded.public static CompletableFuture<GetResult> getAndLock(Core core, GetAndLockRequest request, Transcoder transcoder)
GetAndLockRequest
and dispatches, converts and returns the result.core
- the core reference to dispatch into.request
- the request to dispatch and convert once a response arrives.transcoder
- the transcoder used to decode the response body.CompletableFuture
once the document is fetched and decoded.public static CompletableFuture<GetResult> getAndTouch(Core core, GetAndTouchRequest request, Transcoder transcoder)
public static CompletableFuture<GetResult> subdocGet(Core core, SubdocGetRequest request, Transcoder transcoder)
Copyright © 2021 Couchbase, Inc.. All rights reserved.