Class ListenerManagerImpl

    • Constructor Detail

      • ListenerManagerImpl

        public ListenerManagerImpl()
    • Method Detail

      • addJobListenerMatcher

        public boolean addJobListenerMatcher​(java.lang.String listenerName,
                                             Matcher<JobKey> matcher)
        Description copied from interface: ListenerManager
        Add the given Matcher to the set of matchers for which the listener will receive events if ANY of the matchers match.
        Specified by:
        addJobListenerMatcher in interface ListenerManager
        Parameters:
        listenerName - the name of the listener to add the matcher to
        matcher - the additional matcher to apply for selecting events
        Returns:
        true if the identified listener was found and updated
      • removeJobListenerMatcher

        public boolean removeJobListenerMatcher​(java.lang.String listenerName,
                                                Matcher<JobKey> matcher)
        Description copied from interface: ListenerManager
        Remove the given Matcher to the set of matchers for which the listener will receive events if ANY of the matchers match.
        Specified by:
        removeJobListenerMatcher in interface ListenerManager
        Parameters:
        listenerName - the name of the listener to add the matcher to
        matcher - the additional matcher to apply for selecting events
        Returns:
        true if the given matcher was found and removed from the listener's list of matchers
      • getJobListenerMatchers

        public java.util.List<Matcher<JobKey>> getJobListenerMatchers​(java.lang.String listenerName)
        Description copied from interface: ListenerManager
        Get the set of Matchers for which the listener will receive events if ANY of the matchers match.
        Specified by:
        getJobListenerMatchers in interface ListenerManager
        Parameters:
        listenerName - the name of the listener to add the matcher to
        Returns:
        the matchers registered for selecting events for the identified listener
      • setJobListenerMatchers

        public boolean setJobListenerMatchers​(java.lang.String listenerName,
                                              java.util.List<Matcher<JobKey>> matchers)
        Description copied from interface: ListenerManager
        Set the set of Matchers for which the listener will receive events if ANY of the matchers match.

        Removes any existing matchers for the identified listener!

        Specified by:
        setJobListenerMatchers in interface ListenerManager
        Parameters:
        listenerName - the name of the listener to add the matcher to
        matchers - the matchers to apply for selecting events
        Returns:
        true if the given matcher was found and removed from the listener's list of matchers
      • removeJobListener

        public boolean removeJobListener​(java.lang.String name)
        Description copied from interface: ListenerManager
        Remove the identified JobListener from the Scheduler.
        Specified by:
        removeJobListener in interface ListenerManager
        Returns:
        true if the identified listener was found in the list, and removed.
      • addTriggerListenerMatcher

        public boolean addTriggerListenerMatcher​(java.lang.String listenerName,
                                                 Matcher<TriggerKey> matcher)
        Description copied from interface: ListenerManager
        Add the given Matcher to the set of matchers for which the listener will receive events if ANY of the matchers match.
        Specified by:
        addTriggerListenerMatcher in interface ListenerManager
        Parameters:
        listenerName - the name of the listener to add the matcher to
        matcher - the additional matcher to apply for selecting events
        Returns:
        true if the identified listener was found and updated
      • removeTriggerListenerMatcher

        public boolean removeTriggerListenerMatcher​(java.lang.String listenerName,
                                                    Matcher<TriggerKey> matcher)
        Description copied from interface: ListenerManager
        Remove the given Matcher to the set of matchers for which the listener will receive events if ANY of the matchers match.
        Specified by:
        removeTriggerListenerMatcher in interface ListenerManager
        Parameters:
        listenerName - the name of the listener to add the matcher to
        matcher - the additional matcher to apply for selecting events
        Returns:
        true if the given matcher was found and removed from the listener's list of matchers
      • getTriggerListenerMatchers

        public java.util.List<Matcher<TriggerKey>> getTriggerListenerMatchers​(java.lang.String listenerName)
        Description copied from interface: ListenerManager
        Get the set of Matchers for which the listener will receive events if ANY of the matchers match.
        Specified by:
        getTriggerListenerMatchers in interface ListenerManager
        Parameters:
        listenerName - the name of the listener to add the matcher to
        Returns:
        the matchers registered for selecting events for the identified listener
      • setTriggerListenerMatchers

        public boolean setTriggerListenerMatchers​(java.lang.String listenerName,
                                                  java.util.List<Matcher<TriggerKey>> matchers)
        Description copied from interface: ListenerManager
        Set the set of Matchers for which the listener will receive events if ANY of the matchers match.

        Removes any existing matchers for the identified listener!

        Specified by:
        setTriggerListenerMatchers in interface ListenerManager
        Parameters:
        listenerName - the name of the listener to add the matcher to
        matchers - the matchers to apply for selecting events
        Returns:
        true if the given matcher was found and removed from the listener's list of matchers
      • removeTriggerListener

        public boolean removeTriggerListener​(java.lang.String name)
        Description copied from interface: ListenerManager
        Remove the identified TriggerListener from the Scheduler.
        Specified by:
        removeTriggerListener in interface ListenerManager
        Returns:
        true if the identified listener was found in the list, and removed.