Class DelegatingEventLoopGroup
- java.lang.Object
-
- org.apache.activemq.artemis.core.remoting.impl.netty.DelegatingEventLoopGroup
-
- All Implemented Interfaces:
io.netty.channel.EventLoopGroup,io.netty.util.concurrent.EventExecutorGroup,Iterable<io.netty.util.concurrent.EventExecutor>,Executor,ExecutorService,ScheduledExecutorService
- Direct Known Subclasses:
SharedEventLoopGroup
public class DelegatingEventLoopGroup extends Object implements io.netty.channel.EventLoopGroup
-
-
Constructor Summary
Constructors Constructor Description DelegatingEventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanawaitTermination(long timeout, TimeUnit unit)voidexecute(Runnable command)voidforEach(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> TinvokeAny(Collection<? extends Callable<T>> tasks)<T> TinvokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)booleanisShutdown()booleanisShuttingDown()booleanisTerminated()Iterator<io.netty.util.concurrent.EventExecutor>iterator()io.netty.channel.EventLoopnext()io.netty.channel.ChannelFutureregister(io.netty.channel.Channel channel)io.netty.channel.ChannelFutureregister(io.netty.channel.ChannelPromise channelPromise)io.netty.channel.ChannelFutureregister(io.netty.channel.Channel channel, io.netty.channel.ChannelPromise channelPromise)Deprecated.io.netty.util.concurrent.ScheduledFuture<?>schedule(Runnable runnable, long l, TimeUnit timeUnit)<V> io.netty.util.concurrent.ScheduledFuture<V>schedule(Callable<V> callable, 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)voidshutdown()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()io.netty.util.concurrent.Future<?>submit(Runnable runnable)<T> io.netty.util.concurrent.Future<T>submit(Runnable runnable, T t)<T> io.netty.util.concurrent.Future<T>submit(Callable<T> callable)io.netty.util.concurrent.Future<?>terminationFuture()
-
-
-
Method Detail
-
next
public io.netty.channel.EventLoop next()
- Specified by:
nextin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
nextin interfaceio.netty.channel.EventLoopGroup
-
register
public io.netty.channel.ChannelFuture register(io.netty.channel.Channel channel)
- Specified by:
registerin interfaceio.netty.channel.EventLoopGroup
-
register
public io.netty.channel.ChannelFuture register(io.netty.channel.ChannelPromise channelPromise)
- Specified by:
registerin interfaceio.netty.channel.EventLoopGroup
-
register
@Deprecated public io.netty.channel.ChannelFuture register(io.netty.channel.Channel channel, io.netty.channel.ChannelPromise channelPromise)
Deprecated.- Specified by:
registerin interfaceio.netty.channel.EventLoopGroup
-
isShuttingDown
public boolean isShuttingDown()
- Specified by:
isShuttingDownin interfaceio.netty.util.concurrent.EventExecutorGroup
-
shutdownGracefully
public io.netty.util.concurrent.Future<?> shutdownGracefully()
- Specified by:
shutdownGracefullyin interfaceio.netty.util.concurrent.EventExecutorGroup
-
shutdownGracefully
public io.netty.util.concurrent.Future<?> shutdownGracefully(long l, long l1, TimeUnit timeUnit)- Specified by:
shutdownGracefullyin interfaceio.netty.util.concurrent.EventExecutorGroup
-
terminationFuture
public io.netty.util.concurrent.Future<?> terminationFuture()
- Specified by:
terminationFuturein interfaceio.netty.util.concurrent.EventExecutorGroup
-
shutdown
@Deprecated public void shutdown()
Deprecated.- Specified by:
shutdownin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
shutdownin interfaceExecutorService
-
shutdownNow
@Deprecated public List<Runnable> shutdownNow()
Deprecated.- Specified by:
shutdownNowin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
shutdownNowin interfaceExecutorService
-
iterator
public Iterator<io.netty.util.concurrent.EventExecutor> iterator()
-
submit
public io.netty.util.concurrent.Future<?> submit(Runnable runnable)
- Specified by:
submitin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
submitin interfaceExecutorService
-
submit
public <T> io.netty.util.concurrent.Future<T> submit(Runnable runnable, T t)
- Specified by:
submitin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
submitin interfaceExecutorService
-
submit
public <T> io.netty.util.concurrent.Future<T> submit(Callable<T> callable)
- Specified by:
submitin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
submitin interfaceExecutorService
-
schedule
public io.netty.util.concurrent.ScheduledFuture<?> schedule(Runnable runnable, long l, TimeUnit timeUnit)
- Specified by:
schedulein interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
schedulein interfaceScheduledExecutorService
-
schedule
public <V> io.netty.util.concurrent.ScheduledFuture<V> schedule(Callable<V> callable, long l, TimeUnit timeUnit)
- Specified by:
schedulein interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
schedulein interfaceScheduledExecutorService
-
scheduleAtFixedRate
public io.netty.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long l, long l1, TimeUnit timeUnit)
- Specified by:
scheduleAtFixedRatein interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
scheduleAtFixedRatein interfaceScheduledExecutorService
-
scheduleWithFixedDelay
public io.netty.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(Runnable runnable, long l, long l1, TimeUnit timeUnit)
- Specified by:
scheduleWithFixedDelayin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
scheduleWithFixedDelayin interfaceScheduledExecutorService
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdownin interfaceExecutorService
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminatedin interfaceExecutorService
-
awaitTermination
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException- Specified by:
awaitTerminationin interfaceExecutorService- Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException
- Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
- Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException
- Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
forEach
public void forEach(Consumer<? super io.netty.util.concurrent.EventExecutor> action)
-
spliterator
public Spliterator<io.netty.util.concurrent.EventExecutor> spliterator()
- Specified by:
spliteratorin interfaceIterable<io.netty.util.concurrent.EventExecutor>
-
-