@InterfaceAudience.Public @InterfaceStability.Experimental public class ClusterApiClient extends AbstractClusterApiClient<RestBuilder>
core, password, username| Constructor and Description |
|---|
ClusterApiClient(String username,
String password,
ClusterFacade core,
long defaultTimeout,
TimeUnit defaultTimeUnit)
Build a new
ClusterApiClient to work with a given ClusterFacade. |
| Modifier and Type | Method and Description |
|---|---|
protected RestBuilder |
createBuilder(com.couchbase.client.deps.io.netty.handler.codec.http.HttpMethod method,
String fullPath)
Create the concrete
builders returned by concrete implementations. |
long |
defaultTimeout() |
TimeUnit |
defaultTimeUnit() |
public ClusterApiClient(String username, String password, ClusterFacade core, long defaultTimeout, TimeUnit defaultTimeUnit)
ClusterApiClient 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.defaultTimeout - the default timeout duration to use when executing requests.defaultTimeUnit - the time unit for the timeout.protected RestBuilder createBuilder(com.couchbase.client.deps.io.netty.handler.codec.http.HttpMethod method, String fullPath)
AbstractClusterApiClientbuilders returned by concrete implementations.
Builders will be either capable of synchronous or asynchronous execution, depending on
type T.createBuilder in class AbstractClusterApiClient<RestBuilder>public long defaultTimeout()
public TimeUnit defaultTimeUnit()
Copyright © 2015 Couchbase, Inc.