Class DiozeroScheduler

java.lang.Object
com.diozero.util.DiozeroScheduler

public class DiozeroScheduler
extends Object
  • Method Details

    • getDaemonInstance

      public static DiozeroScheduler getDaemonInstance()
    • getNonDaemonInstance

      public static DiozeroScheduler getNonDaemonInstance()
    • shutdownAll

      public static void shutdownAll()
    • execute

      public void execute​(Runnable command)
    • submit

      public Future<?> submit​(Runnable task)
    • submit

      public <T> Future<T> submit​(Runnable task, T result)
    • 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()