net.hycube.environment.TimeProviderScheduler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hycube Show documentation
Show all versions of hycube Show documentation
HyCube is a distributed hash table based on a hierarchical hypercube geometry, employing a novel variable metric adopting the Steinhaus transform.
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