Class AsyncClusterApiClient
java.lang.Object
com.couchbase.client.java.cluster.api.AbstractClusterApiClient<AsyncRestBuilder>
com.couchbase.client.java.cluster.api.AsyncClusterApiClient
@Public @Experimental public class AsyncClusterApiClient extends AbstractClusterApiClient<AsyncRestBuilder>
An utility class to execute generic HTTP calls asynchronously on a cluster's REST API.
- Since:
- 2.3.2
- Author:
- Simon Baslé
-
Field Summary
Fields inherited from class com.couchbase.client.java.cluster.api.AbstractClusterApiClient
core, password, username
-
Constructor Summary
Constructors Constructor Description AsyncClusterApiClient(String username, String password, ClusterFacade core)
Build a newAsyncClusterApiClient
to work with a givenClusterFacade
. -
Method Summary
Modifier and Type Method Description protected AsyncRestBuilder
createBuilder(com.couchbase.client.deps.io.netty.handler.codec.http.HttpMethod method, String fullPath)
Create the concretebuilders
returned by concrete implementations.
-
Constructor Details
-
AsyncClusterApiClient
Build a newAsyncClusterApiClient
to work with a givenClusterFacade
.- Parameters:
username
- the login to use for REST api calls (eg. administrative username).password
- the password associated with the username.core
- theClusterFacade
through which to send requests.
-
-
Method Details
-
createBuilder
protected AsyncRestBuilder createBuilder(com.couchbase.client.deps.io.netty.handler.codec.http.HttpMethod method, String fullPath)Description copied from class:AbstractClusterApiClient
Create the concretebuilders
returned by concrete implementations. Builders will be either capable of synchronous or asynchronous execution, depending on type T.- Specified by:
createBuilder
in classAbstractClusterApiClient<AsyncRestBuilder>
-