Package cn.ycraft.limbo.util
Class SchedulerUtils
java.lang.Object
cn.ycraft.limbo.util.SchedulerUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceclass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidrepeatAsync(int repetitions, long intervalTicks, Runnable task, Runnable onComplete) voidrepeatWhile(long interval, Callable<Boolean> predicate, Runnable task, Runnable onComplete) voidrepeatWhileAsync(long interval, Callable<Boolean> predicate, Runnable task, Runnable onComplete) voidvoidvoidrunAtInterval(long delayTicks, long intervalTicks, Runnable... tasks) voidrunAtInterval(long intervalTicks, Runnable... tasks) voidrunAtInterval(TimeUnit unit, long delay, long interval, Runnable... tasks) voidrunAtInterval(TimeUnit unit, long interval, Runnable... tasks) voidrunAtIntervalAsync(long delayTicks, long intervalTicks, Runnable... tasks) voidrunAtIntervalAsync(long intervalTicks, Runnable... tasks) voidrunAtIntervalAsync(TimeUnit unit, long delay, long interval, Runnable... tasks) voidrunAtIntervalAsync(TimeUnit unit, long interval, Runnable... tasks) voidvoidvoidrunLaterAsync(long delayTicks, Runnable runnable) voidrunLaterAsync(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
-