pip_services3_commons.run.Notifier module
pip_services3_commons.run.Notifier
Notifier component implementation
- copyright
Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.
- license
MIT, see LICENSE for more details.
-
class
pip_services3_commons.run.Notifier.
Notifier
Bases:
object
Helper class that notifies components.
-
static
notify
(correlation_id: Optional[str, None], components: List[Any], args: pip_services3_commons.run.Parameters.Parameters = None) Notifies multiple components.
To be notified components must implement
INotifiable
interface. If they don’t the call to this method has no effect.- Parameters
correlation_id – (optional) transaction id to trace execution through call chain.
components – a list of components that are to be notified.
args – notification arguments.
-
static
notify_one
(correlation_id: Optional[str, None], component: Any, args: pip_services3_commons.run.Parameters.Parameters) Notifies specific component. To be notiied components must implement
INotifiable
interface. If they don’t the call to this method has no effect.- Parameters
correlation_id – (optional) transaction id to trace execution through call chain.
component – the component that is to be notified.
args – notifiation arguments.
-
static