Class ClusterBuilder

  • All Implemented Interfaces:
    Serializable

    public abstract class ClusterBuilder
    extends Object
    implements Serializable
    This class is used to configure a Cluster after deployment. The cluster represents the connection that will be established to Cassandra.
    See Also:
    Serialized Form
    • Constructor Detail

      • ClusterBuilder

        public ClusterBuilder()
    • Method Detail

      • getCluster

        public com.datastax.driver.core.Cluster getCluster()
      • buildCluster

        protected abstract com.datastax.driver.core.Cluster buildCluster​(com.datastax.driver.core.Cluster.Builder builder)
        Configures the connection to Cassandra. The configuration is done by calling methods on the builder object and finalizing the configuration with build().
        Parameters:
        builder - connection builder
        Returns:
        configured connection