public final class ChannelTaskScheduler extends Object
| Constructor and Description |
|---|
ChannelTaskScheduler(ThreadFactory threadFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
boolean |
isShutdown() |
boolean |
isTerminated() |
<V> ScheduledFuture<V> |
schedule(EventExecutor executor,
Callable<V> callable,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
schedule(EventExecutor executor,
Runnable command,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleAtFixedRate(EventExecutor executor,
Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleWithFixedDelay(EventExecutor executor,
Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
void |
shutdown() |
public ChannelTaskScheduler(ThreadFactory threadFactory)
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic ScheduledFuture<?> schedule(EventExecutor executor, Runnable command, long delay, TimeUnit unit)
public <V> ScheduledFuture<V> schedule(EventExecutor executor, Callable<V> callable, long delay, TimeUnit unit)
public ScheduledFuture<?> scheduleAtFixedRate(EventExecutor executor, Runnable command, long initialDelay, long period, TimeUnit unit)
public ScheduledFuture<?> scheduleWithFixedDelay(EventExecutor executor, Runnable command, long initialDelay, long delay, TimeUnit unit)
Copyright © 2008-2012 The Netty Project. All Rights Reserved.