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>