public static interface Cluster.Initializer
Cluster instances.
 
 If you want to create a new Cluster instance programmatically,
 then it is advised to use Cluster.Builder which can be obtained from the
 Cluster.builder() method.
 
 But it is also possible to implement a custom Initializer that
 retrieves initialization from a web-service or from a configuration file.| Modifier and Type | Method and Description | 
|---|---|
String | 
getClusterName()
An optional name for the created cluster. 
 | 
Configuration | 
getConfiguration()
The configuration to use for the new cluster. 
 | 
List<InetSocketAddress> | 
getContactPoints()
Returns the initial Cassandra hosts to connect to. 
 | 
Collection<Host.StateListener> | 
getInitialListeners()
Optional listeners to register against the newly created cluster. 
 | 
String getClusterName()
Cluster.getClusterName() for more
 information.null to use an automatically
 generated name.List<InetSocketAddress> getContactPoints()
Cluster.Builder.addContactPoint(java.lang.String)
 for more details on contact points.Configuration getConfiguration()
ProtocolOptions).Policies).Configuration).Configuration).Collection<Host.StateListener> getInitialListeners()
Host.StateListener.onAdd(com.datastax.driver.core.Host)
 events for the initial contact points.Host.StateListener to register
 against the newly created cluster.Copyright © 2012–2018. All rights reserved.