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

Allow KeyFilters to be applied to listeners

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

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)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: