Interface NettyIoExecutor
-
- All Superinterfaces:
AsyncCloseable,IoExecutor,ListenableAsyncCloseable
- All Known Subinterfaces:
EventLoopAwareNettyIoExecutor
public interface NettyIoExecutor extends IoExecutor
IoExecutorfor 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 ExecutorasExecutor()Get anExecutorwhich will use anIoExecutorthread 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 anExecutorwhich will use anIoExecutorthread for execution.Caution
Implementation of this method assumes there would be no blocking code inside the submittedRunnables. If this assumption is violated, it will impact EventLoop responsiveness and hence should be avoided.- Returns:
- an
Executorwhich will use anIoExecutorthread for execution.
-
-