Class Executor

java.lang.Object
org.rspeer.commons.Executor

public class Executor extends Object
Executor service utilities
  • Constructor Details

    • Executor

      public Executor()
  • Method Details

    • execute

      public static void execute(Runnable runnable)
    • executeWithRetry

      public static void executeWithRetry(Runnable runnable)
    • executeWithRetry

      public static void executeWithRetry(Runnable runnable, int tries)
    • scheduleAtFixedRate

      public static ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long delay, long interval, TimeUnit unit)
    • schedule

      public static <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
    • schedule

      public static ScheduledFuture<?> schedule(Runnable runnable, long delay, TimeUnit unit)
    • shutdown

      public static void shutdown()