Package org.spongepowered.api.scheduler
Interface TaskExecutorService
-
- All Superinterfaces:
Executor
,ExecutorService
,ScheduledExecutorService
public interface TaskExecutorService extends ScheduledExecutorService
A delegatingExecutorService
that schedules all its tasks on Sponge'sScheduler
.This class can be used to allow any libraries that support the standard concurrency interface to schedule their asynchronous tasks through Sponge.
-
-
Method Summary
-
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
-
-
-
-
Method Detail
-
submit
<T> TaskFuture<T> submit(Callable<T> task)
- Specified by:
submit
in interfaceExecutorService
-
submit
TaskFuture<?> submit(Runnable task)
- Specified by:
submit
in interfaceExecutorService
-
submit
<T> TaskFuture<T> submit(Runnable task, @Nullable T result)
- Specified by:
submit
in interfaceExecutorService
-
schedule
ScheduledTaskFuture<?> schedule(Runnable command, long delay, TemporalUnit unit)
-
schedule
ScheduledTaskFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
- Specified by:
schedule
in interfaceScheduledExecutorService
-
schedule
<V> ScheduledTaskFuture<V> schedule(Callable<V> callable, long delay, TemporalUnit unit)
-
schedule
<V> ScheduledTaskFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
- 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
-
-