Package com.soulfiremc.server
Class SoulFireScheduler
java.lang.Object
com.soulfiremc.server.SoulFireScheduler
- All Implemented Interfaces:
Executor
Lightweight scheduler for async tasks.
Used for most of the async tasks in the server, bots and plugins.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
scheduleAtFixedRate
(Runnable command, long delay, long period, TimeUnit unit) void
scheduleWithDynamicDelay
(Runnable command, LongSupplier delay, TimeUnit unit) void
scheduleWithFixedDelay
(Runnable command, long delay, long period, TimeUnit unit) void
shutdown()
<T> CompletableFuture
<T> supplyAsync
(Supplier<T> command) <T> CompletableFuture
<T> supplyAsync
(Supplier<T> command, org.slf4j.event.Level errorLevel)
-
Constructor Details
-
SoulFireScheduler
-
-
Method Details