public class MainContextExecutorService extends AbstractExecutorService implements ScheduledExecutorService
Constructor and Description |
---|
MainContextExecutorService(GMainContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
TimeUnit units) |
void |
execute(Runnable runnable) |
boolean |
isShutdown() |
boolean |
isTerminated() |
<V> ScheduledFuture<V> |
schedule(Callable<V> callable,
long delay,
TimeUnit units) |
ScheduledFuture<?> |
schedule(Runnable runnable,
long delay,
TimeUnit units) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable runnable,
long initialiDelay,
long period,
TimeUnit units) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable runnable,
long initialiDelay,
long delay,
TimeUnit units) |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
public MainContextExecutorService(GMainContext context)
public void shutdown()
shutdown
in interface ExecutorService
public List<Runnable> shutdownNow()
shutdownNow
in interface ExecutorService
public boolean isShutdown()
isShutdown
in interface ExecutorService
public boolean isTerminated()
isTerminated
in interface ExecutorService
public boolean awaitTermination(long timeout, TimeUnit units) throws InterruptedException
awaitTermination
in interface ExecutorService
InterruptedException
public ScheduledFuture<?> schedule(Runnable runnable, long delay, TimeUnit units)
schedule
in interface ScheduledExecutorService
public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit units)
schedule
in interface ScheduledExecutorService
public ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long initialiDelay, long period, TimeUnit units)
scheduleAtFixedRate
in interface ScheduledExecutorService
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable runnable, long initialiDelay, long delay, TimeUnit units)
scheduleWithFixedDelay
in interface ScheduledExecutorService
Copyright © 2016. All rights reserved.