Interface EventLoopAwareNettyIoExecutor
-
- All Superinterfaces:
AsyncCloseable
,IoExecutor
,ListenableAsyncCloseable
,NettyIoExecutor
public interface EventLoopAwareNettyIoExecutor extends NettyIoExecutor
A specialNettyIoExecutor
that exposes the underlying nettyEventLoopGroup
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.netty.channel.EventLoopGroup
eventLoopGroup()
Returns the underlyingEventLoopGroup
.boolean
isCurrentThreadEventLoop()
Checks if the calling thread is an I/O thread manager by thisNettyIoExecutor
.EventLoopAwareNettyIoExecutor
next()
Returns aEventLoopAwareNettyIoExecutor
that is tied to a singleEventLoop
and not aEventLoopGroup
.-
Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
-
Methods inherited from interface io.servicetalk.transport.api.IoExecutor
isFileDescriptorSocketAddressSupported, isUnixDomainSocketSupported
-
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose
-
Methods inherited from interface io.servicetalk.transport.netty.internal.NettyIoExecutor
asExecutor
-
-
-
-
Method Detail
-
isCurrentThreadEventLoop
boolean isCurrentThreadEventLoop()
Checks if the calling thread is an I/O thread manager by thisNettyIoExecutor
.- Returns:
true
if the calling thread is an I/O thread manager by thisNettyIoExecutor
.
-
eventLoopGroup
io.netty.channel.EventLoopGroup eventLoopGroup()
Returns the underlyingEventLoopGroup
.- Returns:
EventLoopGroup
used by thisEventLoopAwareNettyIoExecutor
.
-
next
EventLoopAwareNettyIoExecutor next()
Returns aEventLoopAwareNettyIoExecutor
that is tied to a singleEventLoop
and not aEventLoopGroup
.- Returns:
EventLoopAwareNettyIoExecutor
that is tied to a singleEventLoop
and not aEventLoopGroup
.
-
-