pyre.ipc.Dispatcher

Module Contents

class pyre.ipc.Dispatcher.Dispatcher

Bases: pyre.protocol

Protocol definition for components that monitor communication channels and invoke handlers when activity is detected

watch(self)

Enter an indefinite loop of monitoring all registered event sources and invoking the registered event handlers

stop(self)

Stop monitoring all communication channels

alarm(self, interval, call)

Schedule {call} to be invoked after {interval} elapses. {interval} is expected to be a dimensional quantity from {pyre.units} with units of time

whenReadReady(self, channel, call)

Add {call} to the list of routines to call when {channel} is ready to be read

whenWriteReady(self, channel, call)

Add {call} to the list of routines to call when {channel} is ready to be written

whenException(self, channel, call)

Add {call} to the list of routines to call when something exceptional has happened to {channel}