Skip to content

Release 2.11.0-RC3: support ThreadLocal integration πŸ™πŸ€πŸš’

Pre-release
Pre-release
Compare
Choose a tag to compare
@oldratlee oldratlee released this 10 Aug 17:17
· 421 commits to master since this release

Change Log

Caution

Version 2.11.0-RC3 🦎 is Deprecated! use version 2.11.5οΌ‹ instead.

New Feature

  • support ThreadLocal integration #130 πŸ™
  • 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

  • improve pom dependencies, more IDE friendly 🍀
  • use WeakHashMap type for implementation, express the weak semantics implicitly
  • use keySet instead of entrySet, simplify the code
  • use type parameter Object instead ? for holder, improve readability
  • add .editorconfig

Java API Doc

https://alibaba.github.io/transmittable-thread-local/apidocs/2.11.0-RC3/index.html

Maven dependency

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>transmittable-thread-local</artifactId>
    <version>2.11.0-RC3</version>
</dependency>