v2.12.3-RC1: support PriorityBlockingQueue with ThreadPoolExecutor
Pre-release
Pre-release
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>