Package com.datastax.astra.client.model
Class NamespaceOptions
java.lang.Object
com.datastax.astra.client.model.NamespaceOptions
Options to create a Namespace.
-
Method Summary
Modifier and TypeMethodDescriptionstatic NamespaceOptions
networkTopologyStrategy
(Map<String, Integer> datacenters) Enforce the creation of a namespace with NetworkTopology strategy.static NamespaceOptions
simpleStrategy
(int replicationFactor) Enforce the creation of a namespace with SimpleStrategy.
-
Method Details
-
simpleStrategy
Enforce the creation of a namespace with SimpleStrategy.- Parameters:
replicationFactor
- replication factor- Returns:
- instance of the options populated
-
networkTopologyStrategy
Enforce the creation of a namespace with NetworkTopology strategy.- Parameters:
datacenters
- list of datacenters with replication factors- Returns:
- instance of the options populated
-