Package com.diozero.util
Class DiozeroScheduler
- java.lang.Object
-
- com.diozero.util.DiozeroScheduler
-
public class DiozeroScheduler extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
getDaemonInstance
public static DiozeroScheduler getDaemonInstance()
-
getNonDaemonInstance
public static DiozeroScheduler getNonDaemonInstance()
-
shutdownAll
public static void shutdownAll()
-
execute
public void execute(Runnable command)
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
-
invokeAtFixedRate
public ScheduledFuture<?> invokeAtFixedRate(Supplier<Float> source, Consumer<Float> sink, long initialDelay, long period, TimeUnit unit)
-
isShutdown
public boolean isShutdown()
-
statusAll
public static void statusAll()
-
-