Package org.rspeer.commons
Class Executor
- java.lang.Object
-
- org.rspeer.commons.Executor
-
public class Executor extends Object
Executor service utilities
-
-
Constructor Summary
Constructors Constructor Description Executor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
execute(Runnable runnable)
static void
executeWithRetry(Runnable runnable)
static void
executeWithRetry(Runnable runnable, int tries)
static ScheduledFuture<?>
schedule(Runnable runnable, long delay, TimeUnit unit)
static <V> ScheduledFuture<V>
schedule(Callable<V> callable, long delay, TimeUnit unit)
static ScheduledFuture<?>
scheduleAtFixedRate(Runnable runnable, long delay, long interval, TimeUnit unit)
static void
shutdown()
-
-
-
Method Detail
-
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()
-
-