Package com.datastax.astra.client.model
Class KeyspaceOptions
java.lang.Object
com.datastax.astra.client.model.KeyspaceOptions
Options to create a Namespace.
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyspaceOptions
networkTopologyStrategy
(Map<String, Integer> datacenters) Enforce the creation of a namespace with NetworkTopology strategy.static KeyspaceOptions
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
-