Module spring.data.cassandra
Class DataCenterReplication
java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.DataCenterReplication
Value object representing replication factor for a given data center.
- Author:
- Mark Paluch
-
Method Summary
-
Method Details
-
of
- Parameters:
dataCenter
- must not be null.replicationFactor
- the replication factor.- Returns:
DataCenterReplication
fordataCenter
andreplicationFactor
.
-
getDataCenter
- Returns:
- the data center.
-
getReplicationFactor
public long getReplicationFactor()- Returns:
- the replication factor.
-
toString
-