public class DelegatingEventLoopGroup extends Object implements io.netty.channel.EventLoopGroup
Constructor and Description |
---|
DelegatingEventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
void |
execute(Runnable command) |
void |
forEach(Consumer<? super io.netty.util.concurrent.EventExecutor> action) |
<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 channelPromise)
Deprecated.
|
io.netty.channel.ChannelFuture |
register(io.netty.channel.ChannelPromise channelPromise) |
<V> io.netty.util.concurrent.ScheduledFuture<V> |
schedule(Callable<V> callable,
long l,
TimeUnit timeUnit) |
io.netty.util.concurrent.ScheduledFuture<?> |
schedule(Runnable runnable,
long l,
TimeUnit timeUnit) |
io.netty.util.concurrent.ScheduledFuture<?> |
scheduleAtFixedRate(Runnable runnable,
long l,
long l1,
TimeUnit timeUnit) |
io.netty.util.concurrent.ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable runnable,
long l,
long l1,
TimeUnit timeUnit) |
void |
shutdown()
Deprecated.
|
io.netty.util.concurrent.Future<?> |
shutdownGracefully() |
io.netty.util.concurrent.Future<?> |
shutdownGracefully(long l,
long l1,
TimeUnit timeUnit) |
List<Runnable> |
shutdownNow()
Deprecated.
|
Spliterator<io.netty.util.concurrent.EventExecutor> |
spliterator() |
<T> io.netty.util.concurrent.Future<T> |
submit(Callable<T> callable) |
io.netty.util.concurrent.Future<?> |
submit(Runnable runnable) |
<T> io.netty.util.concurrent.Future<T> |
submit(Runnable runnable,
T t) |
io.netty.util.concurrent.Future<?> |
terminationFuture() |
public DelegatingEventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
public io.netty.channel.EventLoop next()
next
in interface io.netty.channel.EventLoopGroup
next
in interface io.netty.util.concurrent.EventExecutorGroup
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 channelPromise)
register
in interface io.netty.channel.EventLoopGroup
@Deprecated public io.netty.channel.ChannelFuture register(io.netty.channel.Channel channel, io.netty.channel.ChannelPromise channelPromise)
register
in interface io.netty.channel.EventLoopGroup
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 l, long l1, TimeUnit timeUnit)
shutdownGracefully
in interface io.netty.util.concurrent.EventExecutorGroup
public io.netty.util.concurrent.Future<?> terminationFuture()
terminationFuture
in interface io.netty.util.concurrent.EventExecutorGroup
@Deprecated public void shutdown()
shutdown
in interface io.netty.util.concurrent.EventExecutorGroup
shutdown
in interface ExecutorService
@Deprecated public List<Runnable> shutdownNow()
shutdownNow
in interface io.netty.util.concurrent.EventExecutorGroup
shutdownNow
in interface ExecutorService
public Iterator<io.netty.util.concurrent.EventExecutor> iterator()
public io.netty.util.concurrent.Future<?> submit(Runnable runnable)
submit
in interface io.netty.util.concurrent.EventExecutorGroup
submit
in interface ExecutorService
public <T> io.netty.util.concurrent.Future<T> submit(Runnable runnable, T t)
submit
in interface io.netty.util.concurrent.EventExecutorGroup
submit
in interface ExecutorService
public <T> io.netty.util.concurrent.Future<T> submit(Callable<T> callable)
submit
in interface io.netty.util.concurrent.EventExecutorGroup
submit
in interface ExecutorService
public io.netty.util.concurrent.ScheduledFuture<?> schedule(Runnable runnable, long l, TimeUnit timeUnit)
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 l, TimeUnit timeUnit)
schedule
in interface io.netty.util.concurrent.EventExecutorGroup
schedule
in interface ScheduledExecutorService
public io.netty.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long l, long l1, TimeUnit timeUnit)
scheduleAtFixedRate
in interface io.netty.util.concurrent.EventExecutorGroup
scheduleAtFixedRate
in interface ScheduledExecutorService
public io.netty.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(Runnable runnable, long l, long l1, TimeUnit timeUnit)
scheduleWithFixedDelay
in interface io.netty.util.concurrent.EventExecutorGroup
scheduleWithFixedDelay
in interface ScheduledExecutorService
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 <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 void forEach(Consumer<? super io.netty.util.concurrent.EventExecutor> action)
public Spliterator<io.netty.util.concurrent.EventExecutor> spliterator()
spliterator
in interface Iterable<io.netty.util.concurrent.EventExecutor>
Copyright © 2021 JBoss by Red Hat. All rights reserved.