Package com.diozero.util
Class DiozeroScheduler
java.lang.Object
com.diozero.util.DiozeroScheduler
public class DiozeroScheduler extends Object
-
Method Summary
Modifier and Type Method Description void
execute(Runnable command)
static DiozeroScheduler
getDaemonInstance()
static DiozeroScheduler
getNonDaemonInstance()
ScheduledFuture<?>
invokeAtFixedRate(Supplier<Float> source, Consumer<Float> sink, long initialDelay, long period, TimeUnit unit)
boolean
isShutdown()
ScheduledFuture<?>
scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
static void
shutdownAll()
static void
statusAll()
Future<?>
submit(Runnable task)
<T> Future<T>
submit(Runnable task, T result)
-
Method Details
-
getDaemonInstance
-
getNonDaemonInstance
-
shutdownAll
public static void shutdownAll() -
execute
-
submit
-
submit
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) -
invokeAtFixedRate
-
isShutdown
public boolean isShutdown() -
statusAll
public static void statusAll()
-