Hi guys,

wrote these last weeks few CDI extensions/interceptors, wonder if some of
them could be interesting for DS.

I pushed them on github: https://github.com/rmannibucau/mylang/

- @Locked: just an interceptor delegating to a reentrant lock (see
https://github.com/rmannibucau/mylang/blob/master/src/test/java/com/github/rmannibucau/mylang/lock/LockedTest.java
)
- @Throttled: same idea but for a semaphore (see
https://github.com/rmannibucau/mylang/blob/master/src/test/java/com/github/rmannibucau/mylang/lock/ThrottledTest.java
)
- @Futureable: kid of @Asynchronous for EJB but based on
CompletableStage/Future (see
https://github.com/rmannibucau/mylang/blob/master/src/test/java/com/github/rmannibucau/mylang/future/FutureableTest.java).
This one would need some work to get the pool to use but the backbone is
there.

Most of them use java 8 but none really need to require java 8 and can be
migrated to match java 7 (or even 6) if needed.

wdyt?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

Reply via email to