Skip to content

Releases: alibaba/transmittable-thread-local

Release 2.9.0: add Transmitter#clear method ♻️🚥⚡️

26 Oct 14:12
Compare
Choose a tag to compare

Change Log

New Features

  • add Transmitter#clear method ♻️
  • skip thread pool wrapper/decoration when TTL agent is loaded 🚥

Improvements

  • add @nonnull for methods runSupplierWith*
  • internal implementation refactor/cleanup
  • documentation improvement
  • pom cleanup
    • move some plugins to pluginManagement
    • don't create sources jar by default when build, speedup dev ⚡️
  • remove oracle jdk 10(EOL) in ci
  • unify agent test by unit test(same test case as mvn test)

Java API Doc

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

Maven dependency

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

Already deploy to maven central repository.

Release 2.8.1: A quick-fix release, exclude jsr305 dependency from the release jar 👽

30 Sep 12:11
Compare
Choose a tag to compare

Change Log

Quick fix

exclude jsr305 dependency from the release jar 👽

Java API Doc

http://alibaba.github.io/transmittable-thread-local/apidocs/2.8.1/index.html

Maven dependency

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

Already deploy to maven central repository.

Release 2.8.0: add unwrap method for TtlExecutors to get the original/underneath executor ⬆️🍩

29 Sep 07:26
Compare
Choose a tag to compare

Change Log

Caution

Version 2.8.0 🦎 is Deprecated! use version 2.8.1+ instead.

New Features

  • add unwrap method for TtlExecutors to get the original/underneath executor #112 ⬆️
  • JSR 305 intergration #101

Improvements

  • add ci for jdk 12 and update realated docs
  • add equals and hashCode for TtlTimerTask
  • upgrade kotlin.version to 1.2.71 🍩
  • code cleanup
    • clean test code

Java API Doc

http://alibaba.github.io/transmittable-thread-local/apidocs/2.8.1/index.html

Maven dependency

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

Use v2.8.1+ instead!

Already deploy to maven central repository.

Release 2.7.0: TTL agent support timer task 🌒🍩🍡

18 Sep 06:49
Compare
Choose a tag to compare

Change Log

New Features

TTL agent support timer task #2 🌒

NOTE: decoration for TimerTask default is disable, enabled by agent argument ttl.agent.enable.timer.task: -javaagent:path/to/transmittable-thread-local-2.x.x.ja=ttl.agent.enable.timer.task:true.
more info about TTL agent arguments, see the javadoc of TtlAgent.java.

Improvements

  • upgrade maven wrapper to 3.5.4
  • add millisecond to agent log
  • upgrade kotlin.version to 1.2.70 🍩
  • avoid javassist method search indeterminacy ☕️
    use CtClass.getDeclaredMethod(String, CtClass[]) instead of CtClass.getDeclaredMethod(String)
  • documentation improvement 🍡
    • add doc for decorated thread pool
    • update TTL sequence diagram
    • update javadoc link to java 10
    • use html 5 option for javadoc, support javadoc search
    • fix broken links of maven.org
  • code cleanup
    • clean maven pom

Java API Doc

http://alibaba.github.io/transmittable-thread-local/apidocs/2.7.0/index.html

Maven dependency

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

Already deploy to maven central repository.

Release 2.6.1 - a cleanup/maintenance release 🔰 📚 🐾

06 Aug 03:29
Compare
Choose a tag to compare

Change Log

Improvements

  • add javadoc/documentation for TTL Agent and boot classpath setting 📚
  • exclude internal implementation class from javadoc
  • add javadoc badge in README
  • fix agent log format 💅
    timestamp INFO [thread name] class-name: message info
  • move transformlet classes into internal package 🐾
  • remove duplicated code #103 #104 ©

Java API Doc

http://alibaba.github.io/transmittable-thread-local/apidocs/2.6.1/index.html

Maven dependency

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

Already deploy to maven central repository.

Release 2.6.0: Java option -Xbootclasspath auto setting and using logger adaptor for TTL java agent 🚗 🍭

06 Aug 01:28
Compare
Choose a tag to compare

Change Log

Java option -Xbootclasspath auto setting, and use logger adaptor for TTL java agent.

New Features

  • Java option -Xbootclasspath auto setting 🚗 #99
    Simplify -Xboot-Class-Path setting, no need set java option -Xbootclasspath manually.
  • Use logger adaptor for TTL java agent 🍭 #97
    • use simple std out/error instead of JUL in TTL java agent.
      java agent start and process when app boot, it is difficult to use (java.util.logging)JUL correctly 😩; especially cooperate with app server(eg tomcat or jboss).

Especially thanks our new TTL team member @xwshiustc ! ❤️ He provided the requirements/features and discussed the design/implementation solution warmly!

Improvements

  • improve log for method signiture in TTL Agent.
  • remove -Xbootclasspath setting in CI.
  • shade javassist to internal package.
  • add git-commit-id-plugin, capture SCM info in release.
  • add Maintainability badge.
  • fix typo: scritps -> scripts.
  • upgrade kotlin.version to 1.2.60.
  • documentation improvement
    • fix terminology, thread cache -> thread pooling
    • add maven dependency infos of TTL integration

Java API Doc

http://alibaba.github.io/transmittable-thread-local/apidocs/2.6.0/index.html

Maven dependency

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

Already deploy to maven central repository.

Release 2.5.1 - a cleanup/maintenance release 🔰 👻 🍩

18 Jun 04:15
Compare
Choose a tag to compare

Change Log

Let's embrace Lambda(Java 8/kotlin), Lambda rocks! 🔥

New Features

  • Support Java 11/10/9/8/7/6. 🔥

Improvements

  • fix ForkJoinTaskClassAgentCheck Integration Test! 👻
  • add jdk 10/11 ci
  • split TtlTransformer to JavassistTransformlet 🍭
  • Improve docs and demo codes 📚
  • unit test code cleanup 🎵
    • switch test case from java to kotlin 🍩

Java API Doc

http://alibaba.github.io/transmittable-thread-local/apidocs/2.5.1/index.html

Maven dependency

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

Already deploy to maven central repository.

Release 2.5.0 😻 🤣 🍩

11 Jun 05:49
Compare
Choose a tag to compare

Change Log

Multi-version Java full support: Java 9/8/7/6, support low version Java(Java 6) and full functions for high version Java(Java 8). 😻

Middleware Engineering 🔥, like multi-version Java full support(support low version Java and full functions of high version Java), is boring but essential for middleware‼️ 🤣

Let's embrace Lambda(Java 8/kotlin), Lambda rocks! 🔥

New Features

  • Multi-version Java full support: Java 9/8/7/6, support low version Java(Java 6) and full functions for high version Java(Java 8). 😻

Improvements

  • add private constructor for TransmittableThreadLocal.Transmitter
  • TtlTransformer: rename original doExec method of ForkJoinPool, and set to private method(avoid reflect out renamed method unexpectedly) ☂️
  • upgrade codecov config
  • Improve docs 📚
    • How to add TtlAgent to user own java Agent
    • Add Contributors
  • switch test case from java to kotlin 🍩

Java API Doc

http://alibaba.github.io/transmittable-thread-local/apidocs/2.5.0/index.html

Maven dependency

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

Already deploy to maven central repository.

Release 2.2.2 💼🦎

24 Jun 10:10
Compare
Choose a tag to compare

Change Log

Caution

Version 2.2.0/2.2.1/2.3.x/2.4.x 🦎 is Deprecated!
Use version 2.5.0+ instead, , since version 2.5+ full support java 6/7/8+.

Version 2.2.x is for Java 6, version 2.3.x/2.4.x upgraded to Java 8+.

Backport features from 2.3.x

  • Support TransmittableThreadLocal.Transmitter 📎 transmit all TransmittableThreadLocal values of current thread to other thread by static method capture() => replay(Object) => restore(Object)(CRR operation). 🚀
    TransmittableThreadLocal.Transmitter is internal manipulation API for framework/middleware integration; In general, you will never use it in the biz/application code!

Java API Doc

http://alibaba.github.io/transmittable-thread-local/apidocs/2.2.2/index.html

Maven dependency

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

Already deploy to maven central repository.

Release 2.4.0 🍽 ❤️

30 May 19:51
Compare
Choose a tag to compare

Caution

Version 2.2.0/2.2.1/2.3.x/2.4.x 🦎 is Deprecated!
Use version 2.5.0+ instead, , since version 2.5+ full support java 6/7/8+.

Change Log

From version 2.3+ support Java 8+. 🔥
Bug fix for Java 6 is on branch dev-v2.2.x-jdk6-support.

Let's embrace Java 8, Lambda rocks! 🔥

New Features

  • Support ForkJoinPool #76 🍽
    • jdk agent implementation of ForkJoinTask support, from PR #85 By @wuwen5 ❤️
    • enhance the most frequently used ForkJoinTask(RecursiveAction/RecursiveTask), from PR #83 By @LNAmp ❤️

Java API Doc

http://alibaba.github.io/transmittable-thread-local/apidocs/2.4.0/index.html

Maven dependency

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

Already deploy to maven central repository.