public class HTTPClusterConfig extends ClusterConfig<HTTPClientConfig>
ClusterConfig
that provides the generic typeUNLIMITED_CONNECTIONS
Constructor and Description |
---|
HTTPClusterConfig(int totalMaximumConnections) |
Modifier and Type | Method and Description |
---|---|
ClusterConfig<HTTPClientConfig> |
addHosts(HTTPClientConfig config,
String... hosts)
Convenience method for creating a cluster of hosts with a common
config except for host
|
ClusterConfig<HTTPClientConfig> |
addHosts(String... hosts)
Convenience method for creating a cluster of hosts with a common, default
config except for host
|
addClient, getClients, getTotalMaximumConnections
public HTTPClusterConfig(int totalMaximumConnections)
totalMaximumConnections
- public ClusterConfig<HTTPClientConfig> addHosts(String... hosts)
ClusterConfig
addHosts
in class ClusterConfig<HTTPClientConfig>
hosts
- var arg String array of hostsClusterConfig
with a node for each host in
hosts
public ClusterConfig<HTTPClientConfig> addHosts(HTTPClientConfig config, String... hosts)
ClusterConfig
addHosts
in class ClusterConfig<HTTPClientConfig>
config
- T the common base confighosts
- var arg String array of hostsClusterConfig
with a node for each host in
hosts
Copyright © 2014. All Rights Reserved.