TTL v3 项目管理

作者: oldratlee创建于 2022年10月5日更新于 2026年9月18日
标签✨ feature📚 documentationtask_❤️__🔥_📐 design discussionttl agentt:v3 ✨

TTL core

API incompatible upgrade

❗️ Incompatible

  • ✨ Rename TransmittableThreadLocal#copy method to transmiteeValue
    • Although in most cases, the value being passed is a complex object, it is common to think of copying it, such as deep copying or shallow copying. The method copy is easy to think of and understand the process and operation involved.
    • This is also why the method was named copy in TTL v2.
    • The name transmiteeValue is consistent with the method name InheritableThreadLocal.childValue() in the JDK.
  • ✨ Remove TransmittableThreadLocal's before/after execute methods
  • Move the inner class TTL Transmitter under the root package, making it a subpackage called transmitter
    • Instead of an inner class, the core concept is not a first-class citizen.
    • This also leads to the TransmittableThreadLocal class file becoming longer and longer…
  • ✨ #168
    • The CRR method of TTL Transmitter returns a specific type, not Object.
  • Delete (hidden) interfaces (these were not open interfaces in the first place, and deleting the implementation makes it simpler)
    • Delete (hidden) DisableInheritableThreadFactory interface
    • Delete (hidden) DisableInheritableForkJoinWorkerThreadFactory interface
  • Reduce the number of utility methods to simplify the API
    • In v2, the number of utility methods was excessive due to the switch parameters.
    • reduce util

内容来源: alibaba/transmittable-thread-local