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

net.hycube.environment.TimeProviderScheduler Maven / Gradle / Ivy

Go to download

HyCube is a distributed hash table based on a hierarchical hypercube geometry, employing a novel variable metric adopting the Steinhaus transform.

There is a newer version: 1.0.5
Show newest version
package net.hycube.environment;


public class TimeProviderScheduler implements Scheduler {
	
	protected TimeProvider timeProvider;
	
	
	public TimeProviderScheduler(TimeProvider timeProvider) {
		this.timeProvider = timeProvider;
	}
	

	@Override
	public void scheduleTask(ScheduledTask scheduledTask) {
		timeProvider.schedule(scheduledTask);
	}
	

	@Override
	public void scheduleTask(ScheduledTask scheduledTask, long executionTime) {
		timeProvider.schedule(scheduledTask, executionTime);
	}

	
	@Override
	public void scheduleTaskWithDelay(ScheduledTask scheduledTask, long delay) {
		timeProvider.scheduleWithDelay(scheduledTask, delay);
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy