Package com.couchbase.client.java.kv
Enum GetAccessor
- All Implemented Interfaces:
Serializable
,Comparable<GetAccessor>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<GetResult>
get
(Core core, GetRequest request, Transcoder transcoder) Takes aGetRequest
and dispatches, converts and returns the result.static CompletableFuture<GetResult>
getAndLock
(Core core, GetAndLockRequest request, Transcoder transcoder) Takes aGetAndLockRequest
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
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.
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
public static CompletableFuture<GetResult> get(Core core, GetRequest request, Transcoder transcoder) Takes aGetRequest
and dispatches, converts and returns the result.- Parameters:
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.- Returns:
- a
CompletableFuture
once the document is fetched and decoded.
-
getAndLock
public static CompletableFuture<GetResult> getAndLock(Core core, GetAndLockRequest request, Transcoder transcoder) Takes aGetAndLockRequest
and dispatches, converts and returns the result.- Parameters:
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.- Returns:
- a
CompletableFuture
once the document is fetched and decoded.
-
getAndTouch
public static CompletableFuture<GetResult> getAndTouch(Core core, GetAndTouchRequest request, Transcoder transcoder) -
subdocGet
public static CompletableFuture<GetResult> subdocGet(Core core, SubdocGetRequest request, Transcoder transcoder)
-