@InterfaceAudience.Public @InterfaceStability.Experimental public class AsyncClusterApiClient extends AbstractClusterApiClient<AsyncRestBuilder>
An utility class to execute generic HTTP calls asynchronously on a cluster’s REST API.
core, password, username
Constructor and Description |
---|
AsyncClusterApiClient(String username,
String password,
ClusterFacade core)
Build a new
AsyncClusterApiClient to work with a given ClusterFacade . |
Modifier and Type | Method and Description |
---|---|
protected AsyncRestBuilder |
createBuilder(com.couchbase.client.deps.io.netty.handler.codec.http.HttpMethod method,
String fullPath)
Create the concrete
builders returned by concrete implementations. |
public AsyncClusterApiClient(String username, String password, ClusterFacade core)
Build a new AsyncClusterApiClient
to work with a given ClusterFacade
.
username
- the login to use for REST api calls (eg. administrative username).password
- the password associated with the username.core
- the ClusterFacade
through which to send requests.protected AsyncRestBuilder createBuilder(com.couchbase.client.deps.io.netty.handler.codec.http.HttpMethod method, String fullPath)
AbstractClusterApiClient
Create the concrete builders
returned by concrete implementations. Builders will be either capable of synchronous or asynchronous execution, depending on type T
.
createBuilder
in class AbstractClusterApiClient<AsyncRestBuilder>
Copyright © 2015 Couchbase, Inc.