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

no.finn.unleash.util.UnleashScheduledExecutor Maven / Gradle / Ivy

There is a newer version: 4.4.1
Show newest version
package no.finn.unleash.util;

import java.util.concurrent.Future;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ScheduledFuture;

public interface UnleashScheduledExecutor {
    ScheduledFuture setInterval(
            Runnable command, long initialDelaySec, long periodSec) throws RejectedExecutionException;

    Future scheduleOnce(Runnable runnable);

    default public void shutdown() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy