Package io.getunleash.util
Class UnleashScheduledExecutorImpl
- java.lang.Object
-
- io.getunleash.util.UnleashScheduledExecutorImpl
-
- All Implemented Interfaces:
UnleashScheduledExecutor
public class UnleashScheduledExecutorImpl extends Object implements UnleashScheduledExecutor
-
-
Constructor Summary
Constructors Constructor Description UnleashScheduledExecutorImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnleashScheduledExecutorImplgetInstance()Future<Void>scheduleOnce(Runnable runnable)ScheduledFuturesetInterval(Runnable command, long initialDelaySec, long periodSec)voidshutdown()
-
-
-
Method Detail
-
getInstance
public static UnleashScheduledExecutorImpl getInstance()
-
setInterval
@Nullable public ScheduledFuture setInterval(Runnable command, long initialDelaySec, long periodSec)
- Specified by:
setIntervalin interfaceUnleashScheduledExecutor
-
scheduleOnce
public Future<Void> scheduleOnce(Runnable runnable)
- Specified by:
scheduleOncein interfaceUnleashScheduledExecutor
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceUnleashScheduledExecutor
-
-