Beispiel #1
0
 /**
  * Sets the minor compaction interval, returning the builder for method chaining.
  *
  * <p>The minor compaction interval dictates the interval at which the {@link
  * io.atomix.copycat.server.storage.compaction.MinorCompactionManager} should evaluate {@link
  * Segment}s in the log for minor compaction. It is recommended that the minor compaction
  * interval be at least an order of magnitude smaller than the major compaction interval.
  *
  * @see io.atomix.copycat.server.storage.compaction.MinorCompactionManager
  * @see io.atomix.copycat.server.storage.compaction.MinorCompactionTask
  * @param interval The minor compaction interval.
  * @return The storage builder.
  */
 public Builder withMinorCompactionInterval(Duration interval) {
   storage.minorCompactionInterval = Assert.notNull(interval, "interval");
   return this;
 }