Package cn.ycraft.limbo.util
Class SchedulerUtils
java.lang.Object
cn.ycraft.limbo.util.SchedulerUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
repeatAsync
(int repetitions, long intervalTicks, Runnable task, Runnable onComplete) void
repeatWhile
(long interval, Callable<Boolean> predicate, Runnable task, Runnable onComplete) void
repeatWhileAsync
(long interval, Callable<Boolean> predicate, Runnable task, Runnable onComplete) void
void
void
runAtInterval
(long delayTicks, long intervalTicks, Runnable... tasks) void
runAtInterval
(long intervalTicks, Runnable... tasks) void
runAtInterval
(TimeUnit unit, long delay, long interval, Runnable... tasks) void
runAtInterval
(TimeUnit unit, long interval, Runnable... tasks) void
runAtIntervalAsync
(long delayTicks, long intervalTicks, Runnable... tasks) void
runAtIntervalAsync
(long intervalTicks, Runnable... tasks) void
runAtIntervalAsync
(TimeUnit unit, long delay, long interval, Runnable... tasks) void
runAtIntervalAsync
(TimeUnit unit, long interval, Runnable... tasks) void
void
void
runLaterAsync
(long delayTicks, Runnable runnable) void
runLaterAsync
(TimeUnit unit, long delay, Runnable runnable)
-
Constructor Details
-
SchedulerUtils
-
-
Method Details
-
serverScheduler
-
run
-
runAsync
-
runLater
-
runLater
-
runLaterAsync
-
runLaterAsync
-
runAtInterval
-
runAtInterval
-
runAtIntervalAsync
-
runAtIntervalAsync
-
runAtInterval
-
runAtInterval
-
runAtIntervalAsync
-
runAtIntervalAsync
-
repeat
-
repeatAsync
-
repeatWhile
-
repeatWhileAsync
-