Infinispan Cache Listeners: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:


=Overview=
=Overview=
Infinispan offers a listener API that can be used by clients to register listeners for cache and cache manager events. It is an annotation-driver API. An event triggers a ''notification'' which is dispatched to listeners.


=Code=
=Code=

Revision as of 21:25, 26 October 2016

External

Internal

Overview

Infinispan offers a listener API that can be used by clients to register listeners for cache and cache manager events. It is an annotation-driver API. An event triggers a notification which is dispatched to listeners.

Code

RemoteCache<String,Integer> c = ...;
cl = new CacheListenerImpl();
c.addClientListener(cl);