When using the JCache API, there is no JCache-event to register a listener for EVICTED events.
The JCache spec is undefined regarding the notification on evictions, while requiring notifications on expiry.
According to this ehCache only implements the required events (EventListenerAdaptors.ehListenersFor).
Some other JCache implementations seem to have discussed/implemented delegating internal EVICTED event onto EXPIRED or REMOVED listeners.
Currently we need to unwrap the JCache to be able to directly add an ehCache-Eviction-Listener. This is cumbersome and kind of pollutes the JCache-API handling.
Has this topic already been discussed or is there a possibility to add Eviction-listener events through the JCache API to get notified about all?
Possibly though the configuration.xml?
When using the JCache API, there is no JCache-event to register a listener for EVICTED events. The JCache spec is undefined regarding the notification on evictions, while requiring notifications on expiry. According to this ehCache only implements the required events (EventListenerAdaptors.ehListenersFor).
Some other JCache implementations seem to have discussed/implemented delegating internal EVICTED event onto EXPIRED or REMOVED listeners.
Currently we need to unwrap the JCache to be able to directly add an ehCache-Eviction-Listener. This is cumbersome and kind of pollutes the JCache-API handling.
Has this topic already been discussed or is there a possibility to add Eviction-listener events through the JCache API to get notified about all? Possibly though the configuration.xml?