Package org.spongepowered.api.scheduler
Interface TaskExecutorService
-
- All Superinterfaces:
java.util.concurrent.Executor,java.util.concurrent.ExecutorService,java.util.concurrent.ScheduledExecutorService
public interface TaskExecutorService extends java.util.concurrent.ScheduledExecutorServiceA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScheduledTaskFuture<?>schedule(java.lang.Runnable command, long delay, java.time.temporal.TemporalUnit unit)ScheduledTaskFuture<?>schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)<V> ScheduledTaskFuture<V>schedule(java.util.concurrent.Callable<V> callable, long delay, java.time.temporal.TemporalUnit unit)<V> ScheduledTaskFuture<V>schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)ScheduledTaskFuture<?>scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.time.temporal.TemporalUnit unit)ScheduledTaskFuture<?>scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)ScheduledTaskFuture<?>scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.time.temporal.TemporalUnit unit)ScheduledTaskFuture<?>scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)TaskFuture<?>submit(java.lang.Runnable task)<T> TaskFuture<T>submit(java.lang.Runnable task, @Nullable T result)<T> TaskFuture<T>submit(java.util.concurrent.Callable<T> task)
-
-
-
Method Detail
-
submit
<T> TaskFuture<T> submit(java.util.concurrent.Callable<T> task)
- Specified by:
submitin interfacejava.util.concurrent.ExecutorService
-
submit
TaskFuture<?> submit(java.lang.Runnable task)
- Specified by:
submitin interfacejava.util.concurrent.ExecutorService
-
submit
<T> TaskFuture<T> submit(java.lang.Runnable task, @Nullable T result)
- Specified by:
submitin interfacejava.util.concurrent.ExecutorService
-
schedule
ScheduledTaskFuture<?> schedule(java.lang.Runnable command, long delay, java.time.temporal.TemporalUnit unit)
-
schedule
ScheduledTaskFuture<?> schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)
- Specified by:
schedulein interfacejava.util.concurrent.ScheduledExecutorService
-
schedule
<V> ScheduledTaskFuture<V> schedule(java.util.concurrent.Callable<V> callable, long delay, java.time.temporal.TemporalUnit unit)
-
schedule
<V> ScheduledTaskFuture<V> schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)
- Specified by:
schedulein interfacejava.util.concurrent.ScheduledExecutorService
-
scheduleAtFixedRate
ScheduledTaskFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.time.temporal.TemporalUnit unit)
-
scheduleAtFixedRate
ScheduledTaskFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleAtFixedRatein interfacejava.util.concurrent.ScheduledExecutorService
-
scheduleWithFixedDelay
ScheduledTaskFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.time.temporal.TemporalUnit unit)
-
scheduleWithFixedDelay
ScheduledTaskFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleWithFixedDelayin interfacejava.util.concurrent.ScheduledExecutorService
-
-