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, getTotalMaximumConnections
public PBClusterConfig(int totalMaximumConnections)
totalMaximumConnections
- public ClusterConfig<PBClientConfig> addHosts(String... hosts)
ClusterConfig
addHosts
in class ClusterConfig<PBClientConfig>
hosts
- var arg String array of hostsClusterConfig
with a node for each host in
hosts
public ClusterConfig<PBClientConfig> addHosts(PBClientConfig config, String... hosts)
ClusterConfig
addHosts
in class ClusterConfig<PBClientConfig>
config
- T the common base confighosts
- var arg String array of hostsClusterConfig
with a node for each host in
hosts
Copyright © 2013. All Rights Reserved.