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

io.getunleash.util.UnleashScheduledExecutor Maven / Gradle / Ivy

The newest version!
package io.getunleash.util;

import io.getunleash.lang.Nullable;
import java.util.concurrent.Future;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ScheduledFuture;

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

    Future scheduleOnce(Runnable runnable);

    public default void shutdown() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy