java.lang.Object
com.datastax.astra.client.databases.definition.keyspaces.KeyspaceOptions

public class KeyspaceOptions extends Object
Options to create a Namespace.
  • Method Details

    • simpleStrategy

      public static KeyspaceOptions simpleStrategy(int replicationFactor)
      Enforce the creation of a namespace with SimpleStrategy.
      Parameters:
      replicationFactor - replication factor
      Returns:
      instance of the options populated
    • networkTopologyStrategy

      public static KeyspaceOptions networkTopologyStrategy(Map<String,Integer> datacenters)
      Enforce the creation of a namespace with NetworkTopology strategy.
      Parameters:
      datacenters - list of datacenters with replication factors
      Returns:
      instance of the options populated