SelectorManager
interface SelectorManager
Selector manager is a service that manages NIO selectors and selection threads
Properties
abstract val provider: SelectorProvider NIO selector provider |
Functions
abstract fun notifyClosed(s: Selectable): Unit Notifies the selector that selectable has been closed. |
|
abstract suspend fun select( Suspends until interest is selected for selectable May cause manager to allocate and run selector instance if not yet created. |
Extension Functions
fun <C : Closeable, R> SelectorManager.buildOrClose( Creates a NIO entity via create and calls setup on it. If any exception happens then the entity will be closed and an exception will be propagated. |
Inheritors
abstract class SelectorManagerSupport : SelectorManager Base class for NIO selector managers |