14.3.3. Cache Entry Modified Listener Example
The following example defines a listener in Red Hat JBoss Data Grid that prints some information each time a cache entry is modified:
@Listener public class PrintWhenModified { @CacheEntryModified public void print(CacheEntryModifiedEvent event) { System.out.println("Cache entry modified. Details = " + event"); } }