Interface NotificationEmitter


@NoImplement @MinMuleVersion("4.5.0") public interface NotificationEmitter
This component allows firing ExtensionNotifications with both custom data and default one.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fire(NotificationActionDefinition action, org.mule.runtime.api.metadata.TypedValue<?> data)
    Fires an ExtensionNotification with the desired information.
    default void
    fireLazy(NotificationActionDefinition action, Supplier<?> dataValue, org.mule.runtime.api.metadata.DataType dataType)
    Fires an ExtensionNotification with the desired information.
  • Method Details

    • fire

      void fire(NotificationActionDefinition action, org.mule.runtime.api.metadata.TypedValue<?> data)
      Fires an ExtensionNotification with the desired information.
      Parameters:
      action - the NotificationActionDefinition to use.
      data - the TypedValue data to use.
    • fireLazy

      default void fireLazy(NotificationActionDefinition action, Supplier<?> dataValue, org.mule.runtime.api.metadata.DataType dataType)
      Fires an ExtensionNotification with the desired information.
      Parameters:
      action - the NotificationActionDefinition to use.
      dataValue - a supplier for the the Object to use as value of the generated DataType.
      dataType - the type of the data returned by the provided supplier.