public interface SpongeExecutorService extends ScheduledExecutorService
ExecutorService
that schedules all its tasks on
Sponge's Scheduler
.
This class can be used to allow any libraries that support the standard concurrency interface to schedule their asynchronous tasks through Sponge.
Modifier and Type | Interface and Description |
---|---|
static interface |
SpongeExecutorService.SpongeFuture<V> |
Modifier and Type | Method and Description |
---|---|
<V> SpongeExecutorService.SpongeFuture<V> |
schedule(Callable<V> callable,
long delay,
TimeUnit unit) |
SpongeExecutorService.SpongeFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
SpongeExecutorService.SpongeFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
SpongeExecutorService.SpongeFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
SpongeExecutorService.SpongeFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
schedule
in interface ScheduledExecutorService
<V> SpongeExecutorService.SpongeFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
schedule
in interface ScheduledExecutorService
SpongeExecutorService.SpongeFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleAtFixedRate
in interface ScheduledExecutorService
SpongeExecutorService.SpongeFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
scheduleWithFixedDelay
in interface ScheduledExecutorService