Created
September 17, 2014 11:05
-
-
Save galderz/82a0f9ff00ec44b6ac05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.infinispan.client.hotrod.*; | |
RemoteCacheManager rcm = new RemoteCacheManager(); | |
RemoteCache<Integer, String> cache = rcm.getCache(); | |
CustomEventLogListener listener = new CustomEventLogListener(); | |
try { | |
cache.addClientListener(listener); | |
cache.put(1, "one"); | |
cache.put(1, "new-one"); | |
cache.remove(1); | |
} finally { | |
cache.removeClientListener(listener); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment