Interface NettyIoExecutor
-
- All Superinterfaces:
AsyncCloseable
,IoExecutor
,ListenableAsyncCloseable
- All Known Subinterfaces:
EventLoopAwareNettyIoExecutor
public interface NettyIoExecutor extends IoExecutor
IoExecutor
for netty.Caution
Implementations of this interface assumes that they would not be used to run blocking code. If this assumption is violated, it will impact eventloop responsiveness and hence should be avoided.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Executor
asExecutor()
Get anExecutor
which will use anIoExecutor
thread for execution.-
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
-
-
-
-
Method Detail
-
asExecutor
Executor asExecutor()
Get anExecutor
which will use anIoExecutor
thread for execution.Caution
Implementation of this method assumes there would be no blocking code inside the submittedRunnable
s. If this assumption is violated, it will impact EventLoop responsiveness and hence should be avoided.- Returns:
- an
Executor
which will use anIoExecutor
thread for execution.
-
-