org.gstreamer.swing
public class SwingExecutorService extends AbstractExecutorService implements ScheduledExecutorService
Constructor and Description |
---|
SwingExecutorService()
Creates a new ScheduledExecutorService.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
TimeUnit units) |
void |
execute(Runnable task) |
boolean |
isShutdown() |
boolean |
isTerminated() |
<V> ScheduledFuture<V> |
schedule(Callable<V> task,
long initialDelay,
TimeUnit units) |
ScheduledFuture<?> |
schedule(Runnable task,
long initialDelay,
TimeUnit units) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable task,
long initialDelay,
long interval,
TimeUnit units) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable task,
long initialDelay,
long interval,
TimeUnit units) |
void |
shutdown()
Stops this executor service from accepting any more tasks.
|
List<Runnable> |
shutdownNow() |
<T> T |
wrap(Class<T> interfaceClass,
T instance)
Creates a proxy version of interfaceClass that executes instance
on the Swing EDT when any of its methods are invoked.
|
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
public SwingExecutorService()
public <T> T wrap(Class<T> interfaceClass, T instance)
interfaceClass
- the interface to generate.instance
- the instance to delegate calls to.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 task, long initialDelay, TimeUnit units)
schedule
in interface ScheduledExecutorService
public <V> ScheduledFuture<V> schedule(Callable<V> task, long initialDelay, TimeUnit units)
schedule
in interface ScheduledExecutorService
public ScheduledFuture<?> scheduleAtFixedRate(Runnable task, long initialDelay, long interval, TimeUnit units)
scheduleAtFixedRate
in interface ScheduledExecutorService
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, long initialDelay, long interval, TimeUnit units)
scheduleWithFixedDelay
in interface ScheduledExecutorService
Copyright © 2014. All rights reserved.