Interface NettyIoExecutor
- All Superinterfaces:
AsyncCloseable,Executor,Executor,IoExecutor,ListenableAsyncCloseable,TimeSource
- All Known Subinterfaces:
EventLoopAwareNettyIoExecutor
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
Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefullyMethods inherited from interface io.servicetalk.concurrent.api.Executor
submit, submit, submitCallable, submitRunnable, timer, timerMethods inherited from interface io.servicetalk.concurrent.Executor
currentTime, scheduleMethods inherited from interface io.servicetalk.transport.api.IoExecutor
execute, isFileDescriptorSocketAddressSupported, isIoThreadSupported, isUnixDomainSocketSupported, schedule, shouldOffloadSupplierMethods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosing
-
Method Details
-
asExecutor
Deprecated.IoExecutor now implementsExecutorso this method is redundant.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.
-
Executorso this method is redundant.