io.getunleash.util.UnleashScheduledExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unleash-client-java Show documentation
Show all versions of unleash-client-java Show documentation
A client library for Unleash
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() {}
}