Class DataCenterReplication

java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.DataCenterReplication

public class DataCenterReplication extends Object
Value object representing replication factor for a given data center.
Author:
Mark Paluch
  • Method Details

    • of

      public static DataCenterReplication of(String dataCenter, long replicationFactor)
      Creates a new DataCenterReplication given dataCenter and replicationFactor.
      Parameters:
      dataCenter - must not be null.
      replicationFactor - the replication factor.
      Returns:
      DataCenterReplication for dataCenter and replicationFactor.
    • getDataCenter

      public String getDataCenter()
      Returns:
      the data center.
    • getReplicationFactor

      public long getReplicationFactor()
      Returns:
      the replication factor.
    • toString

      public String toString()
      Overrides:
      toString in class Object