Class NamespaceOptions

java.lang.Object
com.datastax.astra.client.model.NamespaceOptions

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

    • simpleStrategy

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

      public static NamespaceOptions 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