Dubbo Notes

Dubbo SPI

@SPI

@Adaptive   url value

@Activate   group value before after order

Compiler

javassist

jdk

Log

InternalThreadLocal

与jdk中的ThreadLocal实现的区别: ThreadLocalMap(定制化的HashMap)

对netty中的FastThreadLocal的抄袭借鉴:全局递增的index,variablesToRemoveIndex多占用了一个下标的原因。

ThreadPool

fixed:  keep-alive设为0

cached:线程空闲1min(默认)后,自动销毁。

limited: keep-alive设为Long.MAX_VALUE,线程数只增长、不收缩。

eager: 优先创建线程。

原文地址:https://www.cnblogs.com/cheungchein/p/10433194.html