Package org.spongepowered.api.scheduler
Interface TaskExecutorService
- 
- All Superinterfaces:
 Executor,ExecutorService,ScheduledExecutorService
public interface TaskExecutorService extends ScheduledExecutorService
A delegatingExecutorServicethat 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:
 submitin interfaceExecutorService
 
- 
submit
TaskFuture<?> submit(Runnable task)
- Specified by:
 submitin interfaceExecutorService
 
- 
submit
<T> TaskFuture<T> submit(Runnable task, @Nullable T result)
- Specified by:
 submitin interfaceExecutorService
 
- 
schedule
ScheduledTaskFuture<?> schedule(Runnable command, long delay, TemporalUnit unit)
 
- 
schedule
ScheduledTaskFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
- Specified by:
 schedulein 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:
 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
 
 - 
 
 -