Class AbstractMonitorBase<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.ExecutorService executorService  
      protected java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier> notifiers
      list of notifiers to be informed
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractMonitorBase​(java.util.concurrent.ExecutorService executorService)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addNotifier​(org.ikasan.spec.scheduled.notification.model.Notifier notifier)  
      void destroy()  
      java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier> getNotifiers()  
      void invoke​(T notification)  
      void setNotifiers​(java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier> notifiers)  
      protected void shutdownExecutor​(java.util.concurrent.ExecutorService executor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.ikasan.spec.scheduled.notification.model.Monitor

        register, unregister
    • Field Detail

      • executorService

        protected final java.util.concurrent.ExecutorService executorService
      • notifiers

        protected java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier> notifiers
        list of notifiers to be informed
    • Constructor Detail

      • AbstractMonitorBase

        public AbstractMonitorBase​(java.util.concurrent.ExecutorService executorService)
        Constructor
        Parameters:
        executorService -
    • Method Detail

      • invoke

        public void invoke​(T notification)
        Specified by:
        invoke in interface org.ikasan.spec.scheduled.notification.model.Monitor<T>
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.ikasan.spec.scheduled.notification.model.Monitor<T>
      • setNotifiers

        public void setNotifiers​(java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier> notifiers)
        Specified by:
        setNotifiers in interface org.ikasan.spec.scheduled.notification.model.Monitor<T>
      • getNotifiers

        public java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier> getNotifiers()
        Specified by:
        getNotifiers in interface org.ikasan.spec.scheduled.notification.model.Monitor<T>
      • addNotifier

        public void addNotifier​(org.ikasan.spec.scheduled.notification.model.Notifier notifier)
        Specified by:
        addNotifier in interface org.ikasan.spec.scheduled.notification.model.Monitor<T>
      • shutdownExecutor

        protected void shutdownExecutor​(java.util.concurrent.ExecutorService executor)