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
ConstructorDescriptionNonRecursiveEventLoopGroup
(io.netty.channel.MultithreadEventLoopGroup eventLoopGroup) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.netty.channel.EventLoopGroup
delegate()
void
void
io.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, terminationFuture
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
delegate
in classDelegatingEventLoopGroup
-
execute
- Specified by:
execute
in interfaceExecutor
- Overrides:
execute
in classDelegatingEventLoopGroup
-
submit
- Specified by:
submit
in interfaceio.netty.util.concurrent.EventExecutorGroup
- Specified by:
submit
in interfaceExecutorService
- Overrides:
submit
in classDelegatingEventLoopGroup
-
submit
- Specified by:
submit
in interfaceio.netty.util.concurrent.EventExecutorGroup
- Specified by:
submit
in interfaceExecutorService
- Overrides:
submit
in classDelegatingEventLoopGroup
-
submit
- Specified by:
submit
in interfaceio.netty.util.concurrent.EventExecutorGroup
- Specified by:
submit
in interfaceExecutorService
- Overrides:
submit
in classDelegatingEventLoopGroup
-
shutdownGracefullyAndWait
public void shutdownGracefullyAndWait()
-