JBoss Community Archive (Read Only)

Infinispan 6.0

When annotating a method with CacheEntryCreated, how do I retrieve the value of the cache entry added?

Cache listeners can be defined to listen for cache entry created events by annotation methods with @CacheEntryCreated and having CacheEntryCreatedEvent as method parameter. CacheEntryCreatedEvent does not provide a method to retrieve the value that was created in the cache though. To retrieve this value, a method annotated with @CacheEntryModified needs to be added because every time a cache entry is created, cache entry modified event is also fired.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 09:41:26 UTC, last content change 2012-01-19 17:17:07 UTC.