IoHandler
Handles IO dispatching for an cc.otavia.core.actor.AbstractChannelsActor 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 AbstractChannel for IO.
Deregister a AbstractChannel for IO.
Value parameters
- channel
-
the AbstractChannel 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 AbstractChannel.
Attributes
- Returns
-
if compatible of not.
Register a AbstractChannel for IO.
Register a AbstractChannel for IO.
Value parameters
- channel
-
the AbstractChannel 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.