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 newAsyncClusterApiClientto work with a givenClusterFacade. -
Method Summary
Modifier and Type Method Description protected AsyncRestBuildercreateBuilder(com.couchbase.client.deps.io.netty.handler.codec.http.HttpMethod method, String fullPath)Create the concretebuildersreturned by concrete implementations.
-
Constructor Details
-
AsyncClusterApiClient
Build a newAsyncClusterApiClientto 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- theClusterFacadethrough 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:AbstractClusterApiClientCreate the concretebuildersreturned by concrete implementations. Builders will be either capable of synchronous or asynchronous execution, depending on type T.- Specified by:
createBuilderin classAbstractClusterApiClient<AsyncRestBuilder>
-