public interface KeyspaceReplicationOptions<TargetT>
Modifier and Type | Method and Description |
---|---|
default TargetT |
withNetworkTopologyStrategy(Map<String,Integer> replications)
Adds NetworkTopologyStrategy replication options with the given data center replication
factors.
|
TargetT |
withReplicationOptions(Map<String,Object> replicationOptions)
Adds 'replication' options.
|
default TargetT |
withSimpleStrategy(int replicationFactor)
Adds SimpleStrategy replication options with the given replication factor.
|
@NonNull default TargetT withSimpleStrategy(int replicationFactor)
Note that using this will overwrite any previous use of this method or withNetworkTopologyStrategy(Map)
.
@NonNull default TargetT withNetworkTopologyStrategy(@NonNull Map<String,Integer> replications)
Note that using this will overwrite any previous use of this method or withSimpleStrategy(int)
.
replications
- Mapping of data center name to replication factor to use for that data
center.@NonNull TargetT withReplicationOptions(@NonNull Map<String,Object> replicationOptions)
withSimpleStrategy(int)
or withNetworkTopologyStrategy(Map)
.Copyright © 2017–2022. All rights reserved.