Class Notifier

java.lang.Object
org.pipservices3.commons.run.Notifier

public class Notifier extends Object
Helper class that notifies components.
See Also:
  • Constructor Details

    • Notifier

      public Notifier()
  • Method Details

    • notifyOne

      public static void notifyOne(String correlationId, Object component, Parameters args) throws ApplicationException
      Notifies specific component.

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

      Parameters:
      correlationId - (optional) transaction id to trace execution through call chain.
      component - the component that is to be notified.
      args - notifiation arguments.
      Throws:
      ApplicationException - when errors occured.
      See Also:
    • notify

      public static void notify(String correlationId, Iterable<Object> components, Parameters args) throws ApplicationException
      Notifies multiple components.

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

      Parameters:
      correlationId - (optional) transaction id to trace execution through call chain.
      components - a list of components that are to be notified.
      args - notification arguments.
      Throws:
      ApplicationException - when errors occured.
      See Also: