twisted.internet.posixbase._ContinuousPolling(_PollLikeMixin, _DisconnectSelectableMixin) class documentationtwisted.internet.posixbase
(View In Hierarchy)
Implements interfaces: twisted.internet.interfaces.IReactorFDSet
Schedule reads and writes based on the passage of time, rather than notification.
This is useful for supporting polling filesystem files, which 
epoll(7) does not support.
The implementation uses _PollLikeMixin,
which is a bit hacky, but re-implementing and testing the relevant code yet
again is unappealing.
| Method | __init__ | Undocumented | 
| Method | iterate | Call doReadanddoWriteon all readers and 
writers respectively. | 
| Method | addReader | Add a FileDescriptorfor notification of data available to 
read. | 
| Method | addWriter | Add a FileDescriptorfor notification of data available to 
write. | 
| Method | removeReader | Remove a FileDescriptorfrom notification of data available
to read. | 
| Method | removeWriter | Remove a FileDescriptorfrom notification of data available
to write. | 
| Method | removeAll | Remove all readers and writers. | 
| Method | getReaders | Return a list of the readers. | 
| Method | getWriters | Return a list of the writers. | 
| Method | isReading | Checks if the file descriptor is currently being observed for read readiness. | 
| Method | isWriting | Checks if the file descriptor is currently being observed for write readiness. | 
| Instance Variable | _reactor | The EPollReactorthat is using this instance. | 
| Instance Variable | _loop | A LoopingCallthat drives the polling, orNone. | 
| Instance Variable | _readers | A setofFileDescriptorobjects that should be 
read from. | 
| Instance Variable | _writers | A setofFileDescriptorobjects that should be 
written to. | 
| Method | _checkLoop | Start or stop a LoopingCallbased on whether there are 
readers and writers. | 
Inherited from _PollLikeMixin:
| Method | _doReadOrWrite | fd is available for read or write, do the work and raise errors if necessary. | 
Inherited from _DisconnectSelectableMixin:
| Method | _disconnectSelectable | Utility function for disconnecting a selectable. | 
Remove a FileDescriptor from notification of data available
to read.
Remove a FileDescriptor from notification of data available
to write.
Checks if the file descriptor is currently being observed for read readiness.
| Parameters | fd | The file descriptor being checked. (type: twisted.internet.abstract.FileDescriptor) | 
| Returns | Trueif the file descriptor is being observed for read 
readiness,Falseotherwise. (type:bool) | |
Checks if the file descriptor is currently being observed for write readiness.
| Parameters | fd | The file descriptor being checked. (type: twisted.internet.abstract.FileDescriptor) | 
| Returns | Trueif the file descriptor is being observed for write 
readiness,Falseotherwise. (type:bool) | |