Package org.spongepowered.api.scheduler
Interface TaskExecutorService
- All Superinterfaces:
AutoCloseable,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, close, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
-
Method Details
-
submit
- Specified by:
submitin interfaceExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService
-
schedule
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService
-
schedule
-
schedule
- Specified by:
schedulein 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:
scheduleAtFixedRatein 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:
scheduleWithFixedDelayin interfaceScheduledExecutorService
-