ISelectEvent

CountingSelectEvent class -- counts and reports the number of times the trigger() method was called preivous to the event being fired in epoll and the class' handle() method being invoked.

Constructors

this
this()

Constructor. Creates a custom event and hooks it up to the provided event handler.

Members

Functions

events
Event events()

Returs: the epoll events to register for.

fileHandle
Handle fileHandle()

Required by ISelectable interface.

handle
bool handle(Event event)

Called from the select dispatcher when the event fires. Calls the abstract handle_() method.

handle_
bool handle_(ulong n)

Called from handle() when the event fires.

trigger
void trigger()

Triggers the event.

Inherited Members

From IAdvancedSelectClient

IFinalizer
interface IFinalizer
IErrorReporter
interface IErrorReporter
ITimeoutReporter
interface ITimeoutReporter
finalizer
void finalizer(IFinalizer finalizer_)

Sets the Finalizer. May be set to null to disable finalizing.

timeout_reporter
void timeout_reporter(ITimeoutReporter timeout_reporter_)

Sets the TimeoutReporter. May be set to null to disable timeout reporting.

error_reporter
void error_reporter(IErrorReporter error_reporter_)

Sets the Error Reporter. May be set to null to disable error reporting.

finalize
void finalize(FinalizeStatus status)

Finalize method, called after this instance has been unregistered from the Dispatcher.

error_
void error_(Exception exception, Event event)

Error reporting method, called when an Exception is caught from super.handle().

timeout
void timeout()

Timeout method, called after this a timeout has occurred in the SelectDispatcher.

Meta