Package org.rspeer.commons
Class Executor
java.lang.Object
org.rspeer.commons.Executor
Executor service utilities
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
executeWithRetry
(Runnable runnable) static void
executeWithRetry
(Runnable runnable, int tries) static ScheduledFuture<?>
static <V> ScheduledFuture<V>
static ScheduledFuture<?>
scheduleAtFixedRate
(Runnable runnable, long delay, long interval, TimeUnit unit) static void
shutdown()
-
Constructor Details
-
Executor
public Executor()
-
-
Method Details
-
execute
-
executeWithRetry
-
executeWithRetry
-
scheduleAtFixedRate
public static ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long delay, long interval, TimeUnit unit) -
schedule
-
schedule
-
shutdown
public static void shutdown()
-