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

Handle ClientCacheEntryExpired into InvalidatedNearCacheListener

    Details

      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 :

              @ClientCacheEntryExpired
              @SuppressWarnings("unused")
              public void handleExpiredEvent(ClientCacheEntryExpiredEvent<K> event) {
                  invalidate(event.getKey());
              }
      

      Thanks,

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                william.burns Will Burns
                Reporter:
                jflartaud Jean-Francois LARTAUD
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: