Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
Cluster.Builder |
Cluster.Builder.addContactPoint(String address)
Adds a contact point.
|
Cluster.Builder |
Cluster.Builder.addContactPoints(Collection<InetAddress> addresses)
Adds contact points.
|
Cluster.Builder |
Cluster.Builder.addContactPoints(InetAddress... addresses)
Adds contact points.
|
Cluster.Builder |
Cluster.Builder.addContactPoints(String... addresses)
Adds contact points.
|
static Cluster.Builder |
Cluster.builder()
Creates a new
Cluster.Builder instance. |
Cluster.Builder |
Cluster.Builder.withCompression(ProtocolOptions.Compression compression)
Sets the compression to use for the transport.
|
Cluster.Builder |
Cluster.Builder.withCredentials(String username,
String password)
Uses the provided credentials when connecting to Cassandra hosts.
|
Cluster.Builder |
Cluster.Builder.withDeferredInitialization()
Defer the initialization of the created cluster.
|
Cluster.Builder |
Cluster.Builder.withLoadBalancingPolicy(LoadBalancingPolicy policy)
Configures the load balancing policy to use for the new cluster.
|
Cluster.Builder |
Cluster.Builder.withoutJMXReporting()
Disables JMX reporting of the metrics.
|
Cluster.Builder |
Cluster.Builder.withoutMetrics()
Disables metrics collection for the created cluster (metrics are
enabled by default otherwise).
|
Cluster.Builder |
Cluster.Builder.withPoolingOptions(PoolingOptions options)
Set the PoolingOptions to use for the newly created Cluster.
|
Cluster.Builder |
Cluster.Builder.withPort(int port)
The port to use to connect to the Cassandra host.
|
Cluster.Builder |
Cluster.Builder.withReconnectionPolicy(ReconnectionPolicy policy)
Configures the reconnection policy to use for the new cluster.
|
Cluster.Builder |
Cluster.Builder.withRetryPolicy(RetryPolicy policy)
Configures the retry policy to use for the new cluster.
|
Cluster.Builder |
Cluster.Builder.withSocketOptions(SocketOptions options)
Set the SocketOptions to use for the newly created Cluster.
|
Cluster.Builder |
Cluster.Builder.withSSL()
Enables the use of SSL for the created
Cluster . |
Cluster.Builder |
Cluster.Builder.withSSL(SSLOptions sslOptions)
Enable the use of SSL for the created
Cluster using the provided options. |
Copyright © 2014. All Rights Reserved.