com.basho.riak.client.raw.pbc
Class PBClusterConfig
java.lang.Object
com.basho.riak.client.raw.config.ClusterConfig<PBClientConfig>
com.basho.riak.client.raw.pbc.PBClusterConfig
- All Implemented Interfaces:
- Configuration
public class PBClusterConfig
- extends ClusterConfig<PBClientConfig>
ClusterConfig
implementation that provides PBClientConfig
as
the generic type.
- Author:
- russell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PBClusterConfig
public PBClusterConfig(int totalMaximumConnections)
- Parameters:
totalMaximumConnections
-
addHosts
public ClusterConfig<PBClientConfig> 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<PBClientConfig>
- Parameters:
hosts
- var arg String array of hosts
- Returns:
- the
ClusterConfig
with a node for each host in
hosts
addHosts
public ClusterConfig<PBClientConfig> addHosts(PBClientConfig 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<PBClientConfig>
- 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.