Notifier

Helper class that can be use to notify one or more components.

Description

The Notifier class is a helper class that can be use to notify one or more components.

Static methods

notify

Sets execution parameters.

static notify(correlation_id: Optional[str], components: List[Any], args: Parameters)

  • correlation_id: Optional[str] - (optional) transaction id to trace execution through call chain.
  • components: List[Any] - a list of components that are to be notified.
  • args: Parameters - notification arguments.

notify_one

Notifies specific component.

To be notiied components must implement INotifiable interface. If they don’t, the call to this method has no effect.

static notify_one(correlation_id: Optional[str], component: Any, args: Parameters)

  • correlation_id: Optional[str] - (optional) transaction id to trace execution through call chain.
  • component: Any - the component that is to be notified.
  • args: Parameters - notifiation arguments.

See also