Interface EventLoopAwareNettyIoExecutor
-
- All Superinterfaces:
AsyncCloseable,IoExecutor,ListenableAsyncCloseable,NettyIoExecutor
public interface EventLoopAwareNettyIoExecutor extends NettyIoExecutor
A specialNettyIoExecutorthat exposes the underlying nettyEventLoopGroup.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.netty.channel.EventLoopGroupeventLoopGroup()Returns the underlyingEventLoopGroup.booleanisCurrentThreadEventLoop()Checks if the calling thread is an I/O thread manager by thisNettyIoExecutor.EventLoopAwareNettyIoExecutornext()Returns aEventLoopAwareNettyIoExecutorthat is tied to a singleEventLoopand 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:
trueif the calling thread is an I/O thread manager by thisNettyIoExecutor.
-
eventLoopGroup
io.netty.channel.EventLoopGroup eventLoopGroup()
Returns the underlyingEventLoopGroup.- Returns:
EventLoopGroupused by thisEventLoopAwareNettyIoExecutor.
-
next
EventLoopAwareNettyIoExecutor next()
Returns aEventLoopAwareNettyIoExecutorthat is tied to a singleEventLoopand not aEventLoopGroup.- Returns:
EventLoopAwareNettyIoExecutorthat is tied to a singleEventLoopand not aEventLoopGroup.
-
-