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

com.firefly.utils.concurrent.Scheduler Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package com.firefly.utils.concurrent;

import java.util.concurrent.TimeUnit;

public interface Scheduler {
	public interface Future {
		public boolean cancel();
	}
	
	public void shutdown();

	public Future schedule(Runnable task, long delay, TimeUnit unit);

	public Future scheduleWithFixedDelay(Runnable task, long initialDelay, long delay, TimeUnit unit);

	public Future scheduleAtFixedRate(Runnable task, long initialDelay, long period, TimeUnit unit);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy