Release 2.11.0 ππ©π’ππ
This is a long-waiting version.
We hope it's worth the wait and have fun! β€οΈ
Change Log
Caution
Version 2.11.0
π¦ is Deprecated! use version 2.11.5
οΌ instead.
New Feature
- support ThreadLocal integration #130 π
- Caution:
If the registeredThreadLocal
instance is notInheritableThreadLocal
, the instance can NOT inherit value from parent thread(aka. the inheritable ability)! - More info see the javadoc of
Transmitter
- Caution:
- support unwrap ttl runnable for before/afterExecute methods of executor subclass when decorate by ttl agent #141 π
- use WeakHashMap instead of HashMap for capture/backup snapshot π’
- TTL do NOT have the ownership of thread local/snapshot!
- more gc friendly, avoid potential memory leak!
Improvements
- use WeakHashMap type for internal implementation, express the weak reference semantics explicitly
- use
edu.umd.cs.findbugs.annotations
instead of dormantjsr305
- add more
@NonNull
/@Nullable
π± - use keySet instead of entrySet, simplify the code
- use type parameter Object instead ? for holder, improve readability
- protect for NPE for
AutoUnwrapper
- improve pom dependencies, more IDE friendly π€
- add
spotbugs
lint π© - add .editorconfig
- upgrade dependencies βοΈ
- improve javadoc: π
- shade Sources Content
- fix Search redirects to "/undefined/.." url
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.11.0/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.11.0</version>
</dependency>