Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3200

Allow KeyFilters to be applied to listeners

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.Final
    • 5.3.0.Final
    • Listeners

      When registering a listener, users should be able to provide a KeyFilter, a simple interface that determines whether a listener is invoked or not based on whether the affected key(s) matches the filter.

      The proposed API may overload the addListener(Object listener) method on Cache, adding:

          void addListener(Object listener, KeyFilter filter);
      

      where KeyFilter may be an interface that looks like:

      public interface KeyFilter {
      
         boolean match(Object key);
      
      }
      

              manik_jira Manik Surtani (Inactive)
              manik_jira Manik Surtani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: