Selectable

interface Selectable : Closeable, DisposableHandle

A selectable entity with selectable NIO channel, interestedOps subscriptions

Properties

channel

abstract val channel: SelectableChannel

associated channel

interestedOps

abstract val interestedOps: Int

current interests

suspensions

abstract val suspensions: InterestSuspensionsMap

Current selectable suspensions map

Functions

interestOp

abstract fun interestOp(
    interest: SelectInterest,
    state: Boolean
): Unit

Apply state flag of interest to interestedOps. Notice that is doesn’t actually change selection key.