Package org.spongepowered.api.scheduler
Interface TaskExecutorService
- All Superinterfaces:
Executor
,ExecutorService
,ScheduledExecutorService
A delegating
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.
-
Method Summary
Modifier and TypeMethodDescriptionschedule
(Runnable command, long delay, TemporalUnit unit) <V> ScheduledTaskFuture<V>
schedule
(Callable<V> callable, long delay, TemporalUnit unit) <V> ScheduledTaskFuture<V>
scheduleAtFixedRate
(Runnable command, long initialDelay, long period, TemporalUnit unit) scheduleAtFixedRate
(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay
(Runnable command, long initialDelay, long delay, TemporalUnit unit) scheduleWithFixedDelay
(Runnable command, long initialDelay, long delay, TimeUnit unit) TaskFuture<?>
<T> TaskFuture<T>
<T> TaskFuture<T>
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
-
Method Details
-
submit
- Specified by:
submit
in interfaceExecutorService
-
submit
- Specified by:
submit
in interfaceExecutorService
-
submit
- Specified by:
submit
in interfaceExecutorService
-
schedule
-
schedule
- Specified by:
schedule
in interfaceScheduledExecutorService
-
schedule
-
schedule
- Specified by:
schedule
in interfaceScheduledExecutorService
-
scheduleAtFixedRate
ScheduledTaskFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TemporalUnit unit) -
scheduleAtFixedRate
ScheduledTaskFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRate
in interfaceScheduledExecutorService
-
scheduleWithFixedDelay
ScheduledTaskFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TemporalUnit unit) -
scheduleWithFixedDelay
ScheduledTaskFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelay
in interfaceScheduledExecutorService
-