public class IOExecutor extends Object
| Constructor and Description |
|---|
IOExecutor(ScheduledExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable command) |
<V> ScheduledFuture<V> |
schedule(Callable<V> callable,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
<T> Future<T> |
submit(Callable<T> task) |
Future<?> |
submit(Runnable task) |
<T> Future<T> |
submit(Runnable task,
T result) |
public IOExecutor(ScheduledExecutorService executor)
public void execute(Runnable command) throws RejectedException
RejectedExceptionpublic <T> Future<T> submit(Callable<T> task) throws RejectedException
RejectedExceptionpublic <T> Future<T> submit(Runnable task, T result) throws RejectedException
RejectedExceptionpublic Future<?> submit(Runnable task) throws RejectedException
RejectedExceptionpublic ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) throws RejectedException
RejectedExceptionpublic <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) throws RejectedException
RejectedExceptionpublic ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) throws RejectedException
RejectedExceptionpublic ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) throws RejectedException
RejectedExceptionCopyright © 2006–2015 Cojen. All rights reserved.