IoHandler
Handles IO dispatching for an cc.otavia.core.actor.ChannelsActor All operations except wakeup and isCompatible MUST be executed on the cc.otavia.core.reactor.Reactor and should never be called from the user-directly.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class NioHandler
Members list
Value members
Abstract methods
Deregister a Channel for IO.
Deregister a Channel for IO.
Value parameters
- channel
-
the Channel to deregister..
Attributes
- Throws
-
Exception
thrown if an error happens during deregistration.
Returns true if the given type is compatible with this IoHandler and so can be registered, false otherwise.
Returns true if the given type is compatible with this IoHandler and so can be registered, false otherwise.
Value parameters
- handleType
-
the type of the Channel.
Attributes
- Returns
-
if compatible of not.
Register a Channel for IO.
Register a Channel for IO.
Value parameters
- channel
-
the Channel to register.
Attributes
Run the IO handled by this IoHandler. The IoExecutionContext should be used to ensure we not execute too long and so block the processing of other task that are scheduled on the cc.otavia.core.actor.ChannelsActor . This is done by taking IoExecutionContext.delayNanos or IoExecutionContext.deadlineNanos into account.
Run the IO handled by this IoHandler. The IoExecutionContext should be used to ensure we not execute too long and so block the processing of other task that are scheduled on the cc.otavia.core.actor.ChannelsActor . This is done by taking IoExecutionContext.delayNanos or IoExecutionContext.deadlineNanos into account.
Attributes
- Returns
-
the number of IoHandle for which I/O was handled.