Skip to content

Release 2.11.0 πŸ™πŸŽ©πŸš’πŸ“šπŸš—

Compare
Choose a tag to compare
@oldratlee oldratlee released this 12 Aug 05:41
· 422 commits to master since this release

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 registered ThreadLocal instance is not InheritableThreadLocal, the instance can NOT inherit value from parent thread(aka. the inheritable ability)!
    • More info see the javadoc of Transmitter
  • 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 dormant jsr305
  • 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>