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

Allow KeyFilters to be applied to listeners

    XMLWordPrintable

Details

    Description

      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);
      
      }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: