Class AsyncScheduler
java.lang.Object
ua.mcchickenstudio.opencreative.utils.async.AsyncScheduler
AsyncScheduler
This class represents a scheduler, that executes runnables by asynchronous way.- Since:
- 5.0
- Author:
- kireikosasha
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcancel(ScheduledFuture<?> timer) static ScheduledExecutorServicestatic ScheduledFuture<?> later(Runnable runnable, ScheduledExecutorService schedulerCustom, long delay, TimeUnit time) static Future<?> run(Runnable runnable, ScheduledExecutorService schedulerCustom) static <T> Future<T> run(Callable<T> callable, ScheduledExecutorService schedulerCustom) static voidshutdown(ScheduledExecutorService schedulerCustom) static ScheduledFuture<?> timer(Runnable runnable, ScheduledExecutorService schedulerCustom, long delay, long period, TimeUnit time) static String
-
Method Details
-
getScheduler
-
shutdown
-
run
-
run
-
later
public static ScheduledFuture<?> later(Runnable runnable, ScheduledExecutorService schedulerCustom, long delay, TimeUnit time) -
timer
public static ScheduledFuture<?> timer(Runnable runnable, ScheduledExecutorService schedulerCustom, long delay, long period, TimeUnit time) -
cancel
-
toString
-