com.basho.riak.client.raw.http
Class HTTPClusterConfig
java.lang.Object
com.basho.riak.client.raw.config.ClusterConfig<HTTPClientConfig>
com.basho.riak.client.raw.http.HTTPClusterConfig
- All Implemented Interfaces:
- Configuration
public class HTTPClusterConfig
- extends ClusterConfig<HTTPClientConfig>
Concrete child of ClusterConfig
that provides the generic type
- Author:
- russell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPClusterConfig
public HTTPClusterConfig(int totalMaximumConnections)
- Parameters:
totalMaximumConnections
-
addHosts
public ClusterConfig<HTTPClientConfig> addHosts(String... hosts)
- Description copied from class:
ClusterConfig
- Convenience method for creating a cluster of hosts with a common, default
config except for host
- Specified by:
addHosts
in class ClusterConfig<HTTPClientConfig>
- Parameters:
hosts
- var arg String array of hosts
- Returns:
- the
ClusterConfig
with a node for each host in
hosts
addHosts
public ClusterConfig<HTTPClientConfig> addHosts(HTTPClientConfig config,
String... hosts)
- Description copied from class:
ClusterConfig
- Convenience method for creating a cluster of hosts with a common
config except for host
- Specified by:
addHosts
in class ClusterConfig<HTTPClientConfig>
- Parameters:
config
- T the common base confighosts
- var arg String array of hosts
- Returns:
- the
ClusterConfig
with a node for each host in
hosts
Copyright © 2012. All Rights Reserved.