Defines the private Python subscription extension protocol. More...
Inherits Protocol.
Protected Member Functions | |
| None | _subscribe_to_force_manager (self, "ForceManager" force_manager, str|None force_tag=None) |
| Connects this object to a ForceManager. | |
| None | _unsubscribe_from_force_manager (self, "ForceManager" force_manager) |
| Disconnects this object from a ForceManager. | |
Defines the private Python subscription extension protocol.
An object accepted by ForceManager.subscribe() must provide matching subscribe and unsubscribe callbacks. The manager retains a strong Python reference only after the subscribe callback succeeds.
Native _ApoObject implementations normally forward these callbacks to their C ABI subscription functions. Pure Python implementations may define other behavior but remain responsible for honoring the manager lifecycle.
|
protected |
Connects this object to a ForceManager.
| [in] | force_manager | Live manager receiving the subscription. |
| [in] | force_tag | Optional non-empty force label. None permits a native force implementation to choose its default tag. |
|
protected |
Disconnects this object from a ForceManager.
| [in] | force_manager | Live manager from which this object is being removed. |