All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fitbur.failsafe.util.concurrent.Scheduler Maven / Gradle / Ivy

The newest version!
package com.fitbur.failsafe.util.concurrent;

import java.util.concurrent.Callable;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;

/**
 * Schedules executions.
 * 
 * @author Jonathan Halterman
 * @see Schedulers
 * @see com.fitbur.failsafe.util.concurrent.DefaultScheduledFuture
 */
public interface Scheduler {
  /**
   * Schedules the {@code callable} to be called after the {@code delay} for the {@code unit}.
   */
  ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy