Releases: alibaba/transmittable-thread-local
v2.12.5: fix ClassCastException from PriorityBlockingQueue when use TTL Agent
Change Log
Bug Fix
- fix
ClassCastException
fromPriorityBlockingQueue
when useTTL Agent
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.12.5/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.12.5</version>
</dependency>
v2.12.4: add new non-overloaded methods in TtlWrappers
Caution
Version 2.12.4
🦎 is Deprecated! use version 2.12.5
+ instead.
Change Log
New Features
- add new non-overloaded methods in
TtlWrappers
- contributed by @huangfei1101 from PR #342 #344 ❤️
- new methods:
wrapSupplier
,wrapConsumer
,wrapBiConsumer
,wrapFunction
andwrapBiFunction
- javadoc
Improvements
- add demo code
CustomizedBlockingQueueWithTtlDemo
- for issue #340 submitted by @simake2017
- improve javadoc wording and format
- upgrade maven wrapper to 3.8.4
- upgrade dependencies/plugins
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.12.4/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.12.4</version>
</dependency>
v2.12.3: support PriorityBlockingQueue with ThreadPoolExecutor
Change Log
Caution
Version 2.12.3
🦎 is Deprecated! use version 2.12.5
+ instead.
New Features
- new API:
TransmittableThreadLocal.withInitialAndCopier
static method, javadoc - Support
PriorityBlockingQueue
withThreadPoolExecutor
AvoidClassCastException(TtlRunnable cannot be cast to Comparable)
problem for combination usage:
(issues #330 #290 #178 submitted by @outh0527 @KevinQian @wangchongya)- use
java.util.concurrent.PriorityBlockingQueue
forjava.util.concurrent.ThreadPoolExecutor
TTL
: API or Agent(TtlExecutorTransformlet
)- new APIs
- new TTL Transformlet:
com.alibaba.ttl.threadpool.agent.internal.transformlet.impl.TtlPriorityBlockingQueueTransformlet
- Demo Code:
TtlExecutorServiceWithPriorityBlockingQueueDemo
- use
Improvements
- fix: work-around
ClassCircularityError
(issues #278 #234 submitted by @linfan @kun1988) - upgrade dependencies/plugins
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.12.3/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.12.3</version>
</dependency>
v2.12.3-RC1: support PriorityBlockingQueue with ThreadPoolExecutor
Change Log
New Features
Support PriorityBlockingQueue
with ThreadPoolExecutor
.
Avoid ClassCastException(TtlRunnable cannot be cast to Comparable)
problem for combination usage:
- use
java.util.concurrent.PriorityBlockingQueue
forjava.util.concurrent.ThreadPoolExecutor ThreadPoolExecutor
- use
TTL
: API or Agent(TtlExecutorTransformlet
)
- new APIs
- new TTL Transformlet:
com.alibaba.ttl.threadpool.agent.internal.transformlet.impl.TtlPriorityBlockingQueueTransformlet
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.12.3-RC1/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.12.3-RC1</version>
</dependency>
v2.12.2
Change Log
New Features
- add
TransmittableThreadLocal.withInitial
static method- for #315 submitted by @Razor0719
Improvements
- avoid
ConcurrentModificationException
even adjust TTL instances in biz lifecycle callbacks- for #293 submitted by @wmq930626 @Markkkkks
- fix
getDefaultDisableInheritable*ThreadFactory
annotation:@Nullable
->@NonNull
- upgrade dependencies
- improve doc & javadoc 📚
- code cleanup
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.12.2/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.12.2</version>
</dependency>
v2.13.0-Beta1 🧩🔓
Caution
This is a deprecated BETA version, DO NOT use❗️
The update content is NOT released in v2.x
, and is developing on TTL v3
.
Change Log
New Features
- support
TTL Agent
extensionTransformlet
🧩- sample project for
TTL Agent
extensionTransformlet
development - Open whole
agent
package forTTL Agent
extensionTransformlet
development 🔓
- sample project for
- support TTL Agent configuration by
JVM -D property
- add new TTL option getter methods in
TtlAgent
Improvements
- fix
getDefaultDisableInheritable*ThreadFactory
annotation:Nullable
->NonNull
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.13.0-Beta1/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.13.0-Beta1</version>
</dependency>
v2.12.1: a cleanup release ✨📚☂️
This version contains no new feature or bug fix but cleanup and documentation.
Change Log
Cleanups/Improvements
- improve doc & javadoc 📚
- add the benefits and necessity of
TransmittableThreadLocal
✨ - add a faq
- add 3rd party introduction articles
♥️ - improve wording and fix typo
- improve/add badges in README
- add the benefits and necessity of
- code cleanup
- upgrade dependencies/maven plugins
- add/upgrade CI jdks
- fix codecov in CI ☂️
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.12.1/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.12.1</version>
</dependency>
v2.12.0 🤝📚🔨
Change Log
New Features
TtlExecutors
support idempotency- the wrapper
Executors
can be cooperated with the usage of "DecorateRunnable
andCallable
". 🤝 - about idempotency: if is idempotent, allowed submit the
TtlRunnable/TtlCallable
to the wrapperExecutor
; otherwise throwIllegalStateException
.
- the wrapper
Improvements
- improve doc & javadoc 📚
- code cleanup
- adjust
javassist
shaded package:
com.alibaba.ttl.internal.javassist
->com.alibaba.ttl.threadpool.agent.internal.javassist
- improve
ForkJoinPoolDemo
andParallelStreamDemo
/addTtlForkJoinTaskDemo
- upgrade dependencies
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.12.0/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.12.0</version>
</dependency>
Release 2.11.5 ❗️👨🚒
Change Log
Bug Fix ‼️
- fix bug: WeakHashMap in Snapshot led to captured values GCed before replay unexpectedly
- Rollback "use WeakHashMap instead of HashMap for capture/backup snapshot" in
v2.11.0
- Affect versions
v2.11.0 ~ v2.11.4
, DO NOT use these versions, DO upgrade‼️
- Rollback "use WeakHashMap instead of HashMap for capture/backup snapshot" in
Improvements
- using SDKMAN in Travis CI #163 👨🚒
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.11.5/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.11.5</version>
</dependency>
Release 2.11.4 🌈🍩
Change Log
Caution
Version 2.11.4
🦎 is Deprecated! use version 2.11.5
+ instead.
Features
- add TTL Wrapper for common Functional Interfaces 🌈
- for #162 submitted by @liuzhongkai
Improvements
- rename private methods of TTL
- add TTL koroutine intergration demo 🍩
- add CoroutineThreadLocalAsContextElementTest
- improve docs/javadoc 📚
Java API Doc
https://alibaba.github.io/transmittable-thread-local/apidocs/2.11.4/index.html
Maven dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.11.4</version>
</dependency>