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, closeAsyncGracefully
Methods inherited from interface io.servicetalk.concurrent.api.Executor
submit, submit, submitCallable, submitRunnable, timer, timer
Methods inherited from interface io.servicetalk.concurrent.Executor
currentTime, schedule
Methods inherited from interface io.servicetalk.transport.api.IoExecutor
execute, isFileDescriptorSocketAddressSupported, isIoThreadSupported, isUnixDomainSocketSupported, schedule, shouldOffloadSupplier
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosing
-
Method Details
-
asExecutor
Deprecated.IoExecutor now implementsExecutor
so this method is redundant.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.
-
Executor
so this method is redundant.