Selectable

expect interface Selectable

A selectable entity with selectable NIO channel, interestedOps subscriptions.

actual interface Selectable : Closeable, DisposableHandle
actual interface Selectable

Properties

Link copied to clipboard
Link copied to clipboard
abstract val descriptor: Int
Link copied to clipboard
abstract val interestedOps: Int

current interests

Link copied to clipboard
abstract val isClosed: Boolean

Indicated if the selectable is closed.

Link copied to clipboard

Current selectable suspensions map

Functions

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract fun dispose()
Link copied to clipboard
abstract fun interestOp(interest: SelectInterest, state: Boolean)

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