Class NonRecursiveEventLoopGroup
java.lang.Object
org.infinispan.server.core.utils.DelegatingEventLoopGroup
org.infinispan.server.core.transport.NonRecursiveEventLoopGroup
- All Implemented Interfaces:
io.netty.channel.EventLoopGroup,io.netty.util.concurrent.EventExecutorGroup,Iterable<io.netty.util.concurrent.EventExecutor>,Executor,ExecutorService,ScheduledExecutorService
This event loop group prevents any tasks submitted via the
Executor.execute(Runnable)},
ExecutorService.submit(Runnable), ExecutorService.submit(Callable),
ExecutorService.submit(Runnable, Object) API methods from
being ran on the same event loop that submitted it. This is to prevent issues where some operations block on
the result of another task (e.g. Cache creation).-
Constructor Summary
ConstructorsConstructorDescriptionNonRecursiveEventLoopGroup(io.netty.channel.MultithreadEventLoopGroup eventLoopGroup) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.netty.channel.EventLoopGroupdelegate()voidvoidio.netty.util.concurrent.Future<?><T> io.netty.util.concurrent.Future<T><T> io.netty.util.concurrent.Future<T>Methods inherited from class org.infinispan.server.core.utils.DelegatingEventLoopGroup
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isShuttingDown, isTerminated, iterator, next, register, register, register, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, terminationFutureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NonRecursiveEventLoopGroup
public NonRecursiveEventLoopGroup(io.netty.channel.MultithreadEventLoopGroup eventLoopGroup)
-
-
Method Details
-
delegate
protected io.netty.channel.EventLoopGroup delegate()- Specified by:
delegatein classDelegatingEventLoopGroup
-
execute
- Specified by:
executein interfaceExecutor- Overrides:
executein classDelegatingEventLoopGroup
-
submit
- Specified by:
submitin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
submitin interfaceExecutorService- Overrides:
submitin classDelegatingEventLoopGroup
-
submit
- Specified by:
submitin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
submitin interfaceExecutorService- Overrides:
submitin classDelegatingEventLoopGroup
-
submit
- Specified by:
submitin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
submitin interfaceExecutorService- Overrides:
submitin classDelegatingEventLoopGroup
-
shutdownGracefullyAndWait
public void shutdownGracefullyAndWait()
-