提交 ef6c0c10 编写于 作者: oldratlee's avatar oldratlee 🔥

= improve javadoc, shorten long link names

上级 06ec7da5
...@@ -25,9 +25,9 @@ import java.util.logging.Logger; ...@@ -25,9 +25,9 @@ import java.util.logging.Logger;
* {@link java.util.concurrent.ForkJoinPool}), Inheritable feature <b>should never</b> happen, * {@link java.util.concurrent.ForkJoinPool}), Inheritable feature <b>should never</b> happen,
* since threads in thread pooling components is pre-created and pooled, these threads is <b>neutral</b> to biz logic/data. * since threads in thread pooling components is pre-created and pooled, these threads is <b>neutral</b> to biz logic/data.
* <br> * <br>
* Disable inheritable for thread pooling components by wrapping thread factories using method * Disable inheritable for thread pooling components by wrapping thread factories using methods
* {@link com.alibaba.ttl.threadpool.TtlExecutors#getDisableInheritableThreadFactory(java.util.concurrent.ThreadFactory)} / * {@link com.alibaba.ttl.threadpool.TtlExecutors#getDisableInheritableThreadFactory(java.util.concurrent.ThreadFactory) getDisableInheritableThreadFactory} /
* {@link com.alibaba.ttl.threadpool.TtlForkJoinPoolHelper#getDefaultDisableInheritableForkJoinWorkerThreadFactory()}. * {@link com.alibaba.ttl.threadpool.TtlForkJoinPoolHelper#getDefaultDisableInheritableForkJoinWorkerThreadFactory() getDefaultDisableInheritableForkJoinWorkerThreadFactory}.
* <br> * <br>
* Or you can turn on "disable inheritable for thread pool" by {@link com.alibaba.ttl.threadpool.agent.TtlAgent} * Or you can turn on "disable inheritable for thread pool" by {@link com.alibaba.ttl.threadpool.agent.TtlAgent}
* so as to wrap thread factories for thread pooling components automatically and transparently. * so as to wrap thread factories for thread pooling components automatically and transparently.
......
...@@ -13,7 +13,7 @@ package com.alibaba.ttl; ...@@ -13,7 +13,7 @@ package com.alibaba.ttl;
public interface TtlCopier<T> { public interface TtlCopier<T> {
/** /**
* Computes the value for {@link TransmittableThreadLocal} * Computes the value for {@link TransmittableThreadLocal}
* or registered {@link ThreadLocal}(registered by {@link TransmittableThreadLocal.Transmitter#registerThreadLocal}) * or registered {@link ThreadLocal}(registered by method {@link TransmittableThreadLocal.Transmitter#registerThreadLocal Transmitter#registerThreadLocal})
* as a function of the source thread's value at the time the task * as a function of the source thread's value at the time the task
* Object is created. * Object is created.
* <p> * <p>
......
...@@ -32,12 +32,12 @@ import java.util.logging.Level; ...@@ -32,12 +32,12 @@ import java.util.logging.Level;
* <li>rewrite the {@link java.util.concurrent.ThreadFactory} constructor parameter * <li>rewrite the {@link java.util.concurrent.ThreadFactory} constructor parameter
* of {@link java.util.concurrent.ThreadPoolExecutor} * of {@link java.util.concurrent.ThreadPoolExecutor}
* to {@link com.alibaba.ttl.threadpool.DisableInheritableThreadFactory} * to {@link com.alibaba.ttl.threadpool.DisableInheritableThreadFactory}
* by util method {@link com.alibaba.ttl.threadpool.TtlExecutors#getDisableInheritableThreadFactory(java.util.concurrent.ThreadFactory)}. * by util method {@link com.alibaba.ttl.threadpool.TtlExecutors#getDisableInheritableThreadFactory(java.util.concurrent.ThreadFactory) getDisableInheritableThreadFactory}.
* </li> * </li>
* <li>rewrite the {@link java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory} constructor parameter * <li>rewrite the {@link java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory} constructor parameter
* of {@link java.util.concurrent.ForkJoinPool} * of {@link java.util.concurrent.ForkJoinPool}
* to {@link com.alibaba.ttl.threadpool.DisableInheritableForkJoinWorkerThreadFactory} * to {@link com.alibaba.ttl.threadpool.DisableInheritableForkJoinWorkerThreadFactory}
* by util method {@link com.alibaba.ttl.threadpool.TtlForkJoinPoolHelper#getDisableInheritableForkJoinWorkerThreadFactory(java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory)}. * by util method {@link com.alibaba.ttl.threadpool.TtlForkJoinPoolHelper#getDisableInheritableForkJoinWorkerThreadFactory(java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory) getDisableInheritableForkJoinWorkerThreadFactory}.
* </li> * </li>
* </ul> * </ul>
* More info about "disable inheritable" see {@link com.alibaba.ttl.TransmittableThreadLocal}. * More info about "disable inheritable" see {@link com.alibaba.ttl.TransmittableThreadLocal}.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册