public void replicate() {
    if (enableContinuousReplication) {
      replicateContinuous();
    } else {
      replicateCyclic();
    }
  }
Runs continuous replication if enabled otherwise runs cyclic replication
ambry-replication/src/main/java/com/github/ambry/replication/ReplicaThread.java