public class PBClusterConfig extends ClusterConfig<PBClientConfig>
ClusterConfig implementation that provides PBClientConfig as
the generic type.UNLIMITED_CONNECTIONS| Constructor and Description |
|---|
PBClusterConfig(int totalMaximumConnections) |
| Modifier and Type | Method and Description |
|---|---|
ClusterConfig<PBClientConfig> |
addHosts(PBClientConfig config,
String... hosts)
Convenience method for creating a cluster of hosts with a common
config except for host
|
ClusterConfig<PBClientConfig> |
addHosts(String... hosts)
Convenience method for creating a cluster of hosts with a common, default
config except for host
|
addClient, getClients, getTotalMaximumConnectionspublic PBClusterConfig(int totalMaximumConnections)
totalMaximumConnections - public ClusterConfig<PBClientConfig> addHosts(String... hosts)
ClusterConfigaddHosts in class ClusterConfig<PBClientConfig>hosts - var arg String array of hostsClusterConfig with a node for each host in
hostspublic ClusterConfig<PBClientConfig> addHosts(PBClientConfig config, String... hosts)
ClusterConfigaddHosts in class ClusterConfig<PBClientConfig>config - T the common base confighosts - var arg String array of hostsClusterConfig with a node for each host in
hostsCopyright © 2014. All Rights Reserved.