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.