Infinispan Cache Listeners

From NovaOrdis Knowledge Base
Revision as of 21:25, 26 October 2016 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

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);