PartitionPump Class
Manages individual connection to a given partition.
- Inheritance
-
builtins.objectPartitionPump
Constructor
PartitionPump(host, lease)
Parameters
- host
- lease
Methods
| close_async |
Safely closes the pump. |
| is_closing |
Returns whether pump is closing. |
| on_closing_async |
Event handler for on closing event. |
| on_open_async |
Event handler for on open event. |
| open_async |
Opens partition pump. |
| process_error_async |
Passes error to the event processor for processing. |
| process_events_async |
Process pump events. |
| run |
Makes pump sync so that it can be run in a thread. |
| set_lease |
Sets a new partition lease to be processed by the pump. |
| set_pump_status |
Updates pump status and logs update to console. |
close_async
Safely closes the pump.
async close_async(reason)
Parameters
is_closing
on_closing_async
Event handler for on closing event.
abstract async on_closing_async(reason)
Parameters
on_open_async
Event handler for on open event.
abstract async on_open_async()
open_async
Opens partition pump.
async open_async()
process_error_async
Passes error to the event processor for processing.
async process_error_async(error)
Parameters
process_events_async
Process pump events.
async process_events_async(events)
Parameters
run
Makes pump sync so that it can be run in a thread.
run()
set_lease
Sets a new partition lease to be processed by the pump.
set_lease(new_lease)
Parameters
set_pump_status
Updates pump status and logs update to console.
set_pump_status(status)
Parameters
- status
Feedback
Submit and view feedback for