public abstract class DelegatingEventLoopGroup extends Object implements io.netty.channel.EventLoopGroup
EventLoopGroup
that just delegates to another EventLoopGroup
. Useful for extending or building decorators.Modifier | Constructor and Description |
---|---|
protected |
DelegatingEventLoopGroup(io.netty.channel.EventLoopGroup delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
void |
execute(Runnable command) |
io.netty.channel.EventLoopGroup |
getDelegate() |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> tasks) |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit) |
<T> T |
invokeAny(Collection<? extends Callable<T>> tasks) |
<T> T |
invokeAny(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit) |
boolean |
isShutdown() |
boolean |
isShuttingDown() |
boolean |
isTerminated() |
Iterator<io.netty.util.concurrent.EventExecutor> |
iterator() |
io.netty.channel.EventLoop |
next() |
io.netty.channel.ChannelFuture |
register(io.netty.channel.Channel channel) |
io.netty.channel.ChannelFuture |
register(io.netty.channel.Channel channel,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
register(io.netty.channel.ChannelPromise promise) |
<V> io.netty.util.concurrent.ScheduledFuture<V> |
schedule(Callable<V> callable,
long delay,
TimeUnit unit) |
io.netty.util.concurrent.ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
io.netty.util.concurrent.ScheduledFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
io.netty.util.concurrent.ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
void |
shutdown() |
io.netty.util.concurrent.Future<?> |
shutdownGracefully() |
io.netty.util.concurrent.Future<?> |
shutdownGracefully(long quietPeriod,
long timeout,
TimeUnit unit) |
List<Runnable> |
shutdownNow() |
<T> io.netty.util.concurrent.Future<T> |
submit(Callable<T> task) |
io.netty.util.concurrent.Future<?> |
submit(Runnable task) |
<T> io.netty.util.concurrent.Future<T> |
submit(Runnable task,
T result) |
io.netty.util.concurrent.Future<?> |
terminationFuture() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected DelegatingEventLoopGroup(io.netty.channel.EventLoopGroup delegate)
public io.netty.channel.EventLoopGroup getDelegate()
EventLoopGroup
being delegated to.public boolean isShuttingDown()
isShuttingDown
in interface io.netty.util.concurrent.EventExecutorGroup
public io.netty.util.concurrent.Future<?> shutdownGracefully()
shutdownGracefully
in interface io.netty.util.concurrent.EventExecutorGroup
public io.netty.util.concurrent.Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit)
shutdownGracefully
in interface io.netty.util.concurrent.EventExecutorGroup
public io.netty.util.concurrent.Future<?> terminationFuture()
terminationFuture
in interface io.netty.util.concurrent.EventExecutorGroup
public void shutdown()
shutdown
in interface io.netty.util.concurrent.EventExecutorGroup
shutdown
in interface ExecutorService
public List<Runnable> shutdownNow()
shutdownNow
in interface io.netty.util.concurrent.EventExecutorGroup
shutdownNow
in interface ExecutorService
public boolean isShutdown()
isShutdown
in interface ExecutorService
public boolean isTerminated()
isTerminated
in interface ExecutorService
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
awaitTermination
in interface ExecutorService
InterruptedException
public io.netty.channel.EventLoop next()
next
in interface io.netty.channel.EventLoopGroup
next
in interface io.netty.util.concurrent.EventExecutorGroup
public Iterator<io.netty.util.concurrent.EventExecutor> iterator()
public io.netty.util.concurrent.Future<?> submit(Runnable task)
submit
in interface io.netty.util.concurrent.EventExecutorGroup
submit
in interface ExecutorService
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException
invokeAll
in interface ExecutorService
InterruptedException
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
invokeAll
in interface ExecutorService
InterruptedException
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException
invokeAny
in interface ExecutorService
InterruptedException
ExecutionException
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
invokeAny
in interface ExecutorService
InterruptedException
ExecutionException
TimeoutException
public <T> io.netty.util.concurrent.Future<T> submit(Runnable task, T result)
submit
in interface io.netty.util.concurrent.EventExecutorGroup
submit
in interface ExecutorService
public <T> io.netty.util.concurrent.Future<T> submit(Callable<T> task)
submit
in interface io.netty.util.concurrent.EventExecutorGroup
submit
in interface ExecutorService
public io.netty.util.concurrent.ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
schedule
in interface io.netty.util.concurrent.EventExecutorGroup
schedule
in interface ScheduledExecutorService
public <V> io.netty.util.concurrent.ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
schedule
in interface io.netty.util.concurrent.EventExecutorGroup
schedule
in interface ScheduledExecutorService
public io.netty.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleAtFixedRate
in interface io.netty.util.concurrent.EventExecutorGroup
scheduleAtFixedRate
in interface ScheduledExecutorService
public io.netty.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
scheduleWithFixedDelay
in interface io.netty.util.concurrent.EventExecutorGroup
scheduleWithFixedDelay
in interface ScheduledExecutorService
public io.netty.channel.ChannelFuture register(io.netty.channel.Channel channel)
register
in interface io.netty.channel.EventLoopGroup
public io.netty.channel.ChannelFuture register(io.netty.channel.ChannelPromise promise)
register
in interface io.netty.channel.EventLoopGroup
public io.netty.channel.ChannelFuture register(io.netty.channel.Channel channel, io.netty.channel.ChannelPromise promise)
register
in interface io.netty.channel.EventLoopGroup
Copyright © 2019. All rights reserved.