2 Replies Latest reply on Mar 1, 2016 11:48 AM by rvansa

    forcing invalidation event on non-existing entry

    bill.burke

      Consider an clustered invalidation cache. If you remove an entry on node 1 and that node doesn't exist on node 2, then any @Listener on node2 will not receive @CacheEntryInvalidated event.  Is there any way to force that the event is received on node 2 if the entry doesn't exist on node 2?

        • 1. Re: forcing invalidation event on non-existing entry
          william.burns

          Bill,

           

          Unfortunately, there is no way currently to force this to occur.  The event is only raised if something was removed on that node.

           

          Can you can explain what you are trying to accomplish?  Is it just to verify that an invalidation is sent properly?  If not maybe we can figure out an alternative or we can improve this to be an option.

          • 2. Re: forcing invalidation event on non-existing entry
            rvansa

            The way to achieve this are interceptors.

             

            However, note that custom interceptors are about to major API change and while at least 8.2 will keep backward compatibility functionally, performance-wise it may incur some overhead. So it's possible that you'll have to rewrite your code for Infinispan 9.0.