Interface Notifier<NOTIFICATION>

  • All Known Subinterfaces:
    FlowNotifier<NOTIFICATION>, JobNotifier<NOTIFICATION>

    public interface Notifier<NOTIFICATION>
    Monitor contract for the subject notification to the monitor
    Author:
    Ikasan Development Team
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void invoke​(java.lang.String environment, java.lang.String moduleName, java.lang.String context, NOTIFICATION notification)
      Invocation of the notifier for the given notification
      boolean isNotifyStateChangesOnly()
      Details whether the notifier should only be informed of changes to state rather than repeated updates of the same state.
      void setNotifyStateChangesOnly​(boolean notifyStateChangesOnly)
      Sets whether the notifier is only interested in state changes which are different from the previous reported state or all state change updates.
    • Method Detail

      • invoke

        void invoke​(java.lang.String environment,
                    java.lang.String moduleName,
                    java.lang.String context,
                    NOTIFICATION notification)
        Invocation of the notifier for the given notification
        Parameters:
        environment -
        moduleName -
        context -
        notification -
      • setNotifyStateChangesOnly

        void setNotifyStateChangesOnly​(boolean notifyStateChangesOnly)
        Sets whether the notifier is only interested in state changes which are different from the previous reported state or all state change updates. Default is true - only notify state changes
      • isNotifyStateChangesOnly

        boolean isNotifyStateChangesOnly()
        Details whether the notifier should only be informed of changes to state rather than repeated updates of the same state.