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 Deprecated Methods Modifier and Type Method Description static voidexecute(Runnable runnable)Deprecated.static voidexecuteSafe(Runnable runnable)static voidexecuteWithRetry(Runnable runnable)static voidexecuteWithRetry(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 voidshutdown()
-
-
-
Method Detail
-
executeSafe
public static void executeSafe(Runnable runnable)
-
execute
@Deprecated public static void execute(Runnable runnable)
Deprecated.
-
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()
-
-