[infinispan-issues] [JBoss JIRA] (ISPN-7087) Handle ClientCacheEntryExpired into InvalidatedNearCacheListener

Jean-Francois LARTAUD (JIRA) issues at jboss.org
Fri Oct 7 08:32:00 EDT 2016


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

Jean-Francois LARTAUD updated ISPN-7087:
----------------------------------------
    Description: 
Hi,

Is there a reason why the InvalidatedNearCacheListener does not support the cache entry expiration ?
By adding the ClientCacheEntryExpired annotation on the listener, it should be possible to invalidate a near cache entry when it has expired on a remote infinispan server.

For example, into org.infinispan.client.hotrod.near.NearCacheService.InvalidatedNearCacheListener add this method : 
{code}
        @ClientCacheEntryExpired
        @SuppressWarnings("unused")
        public void handleExpiredEvent(ClientCacheEntryExpiredEvent<K> event) {
            invalidate(event.getKey());
        }
{code}

Thanks,

  was:
Hi,

Is there a reason why the InvalidatedNearCacheListener does not support the cache entry expiration ?
By adding the ClientCacheEntryExpired annotation on the listener, it should be possible to invalidate a near cache entry when it is expired on a remote server.

For example, into org.infinispan.client.hotrod.near.NearCacheService.InvalidatedNearCacheListener add this method : 
{code}
        @ClientCacheEntryExpired
        @SuppressWarnings("unused")
        public void handleExpiredEvent(ClientCacheEntryExpiredEvent<K> event) {
            invalidate(event.getKey());
        }
{code}

Thanks,



> Handle ClientCacheEntryExpired into InvalidatedNearCacheListener
> ----------------------------------------------------------------
>
>                 Key: ISPN-7087
>                 URL: https://issues.jboss.org/browse/ISPN-7087
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Remote Protocols
>    Affects Versions: 8.2.4.Final
>            Reporter: Jean-Francois LARTAUD
>
> Hi,
> Is there a reason why the InvalidatedNearCacheListener does not support the cache entry expiration ?
> By adding the ClientCacheEntryExpired annotation on the listener, it should be possible to invalidate a near cache entry when it has expired on a remote infinispan server.
> For example, into org.infinispan.client.hotrod.near.NearCacheService.InvalidatedNearCacheListener add this method : 
> {code}
>         @ClientCacheEntryExpired
>         @SuppressWarnings("unused")
>         public void handleExpiredEvent(ClientCacheEntryExpiredEvent<K> event) {
>             invalidate(event.getKey());
>         }
> {code}
> Thanks,



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list