类 InternalRunnable
- java.lang.Object
-
- org.apache.dubbo.common.threadlocal.InternalRunnable
-
- 所有已实现的接口:
Runnable
public class InternalRunnable extends Object implements Runnable
InternalRunnable There is a risk of memory leak when usingInternalThreadLocalwithout callingInternalThreadLocal.removeAll(). This design is learning from {@see io.netty.util.concurrent.FastThreadLocalRunnable} which is in Netty.
-
-
构造器概要
构造器 构造器 说明 InternalRunnable(Runnable runnable)
-
-
-
构造器详细资料
-
InternalRunnable
public InternalRunnable(Runnable runnable)
-
-
方法详细资料
-
run
public void run()
After the task execution is completed, it will callInternalThreadLocal.removeAll()to clear unnecessary variables in the thread.
-
-