-
Notifications
You must be signed in to change notification settings - Fork 305
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
Blocking Cache annotation #1137
Comments
Do you fancy creating it? |
@jerrinot, is @smillidge suggestion's fine with you? Let us know what do you think. |
@fturizo: Hi, I am rather busy nowdays. I don't expect to have time for this before end of the year. |
@jerrinot, considering that this feature is up to consideration for JCache v2.0, it might be a good idea to wait until a consensus is reached on how to handle blocking caches using annotations. Have you considered using a programmatic approach to solve you issue, using Java's concurrency utilities? |
Hi @fturizo, thanks for your reply. Programmatic approach is certainly an option, however it forces a developer to deal with concurrency - and that's something developers are notoriously bad at. I thought Payara could provide a nice & easy-to-use abstraction here. My idea is to use Payara as sort of "playing ground" and explore various ways how to integrate JCache into the Java EE world, find integration issues. So when the JCache 2.0 Expert Group is eventually formed we will already have a clear-ish picture about what to do. This should be good for both Payara (=being able to deliver JCache 2.0 features quickly) and the JCache 2.0 spec (=no ivory tower design) |
Unfortunately, we’re not able to fit this feature request into our current roadmap. I’m closing this issue. I hope you understand. |
I thought Payara could have a custom annotation to introduce a behavior described in jsr107/jsr107spec#373
Something like
@Blocking
or@Atomic
- when used together with@CacheResult
it would behave as described at jsr107/jsr107spec#373 (comment)This is very useful in high throughput scenarios where the actual method execution is expensive.
The text was updated successfully, but these errors were encountered: