[infinispan-issues] [JBoss JIRA] (ISPN-3200) Allow KeyFilters to be applied to listeners

Manik Surtani (JIRA) jira-events at lists.jboss.org
Wed Jun 26 06:31:20 EDT 2013


     [ https://issues.jboss.org/browse/ISPN-3200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manik Surtani updated ISPN-3200:
--------------------------------

    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:

{code}
    void addListener(Object listener, KeyFilter filter);
{code}

where {{KeyFilter}} may be an interface that looks like:

{code}

public interface KeyFilter {

   boolean match(Object key);

}
{code}

  was:
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.



    
> Allow KeyFilters to be applied to listeners
> -------------------------------------------
>
>                 Key: ISPN-3200
>                 URL: https://issues.jboss.org/browse/ISPN-3200
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Listeners
>    Affects Versions: 5.3.0.Final
>            Reporter: Manik Surtani
>            Assignee: Mircea Markus
>              Labels: leads
>             Fix For: 6.0.0.Alpha1, 6.0.0.Final
>
>
> 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:
> {code}
>     void addListener(Object listener, KeyFilter filter);
> {code}
> where {{KeyFilter}} may be an interface that looks like:
> {code}
> public interface KeyFilter {
>    boolean match(Object key);
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list