Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JCache Listeners can't listen on EVICTED events #3237

Open
SamuelBussmann opened this issue Jul 18, 2024 · 0 comments
Open

JCache Listeners can't listen on EVICTED events #3237

SamuelBussmann opened this issue Jul 18, 2024 · 0 comments

Comments

@SamuelBussmann
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant