类 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)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidrun()After the task execution is completed, it will callInternalThreadLocal.removeAll()to clear unnecessary variables in the thread.static RunnableWrap(Runnable runnable)Wrap ordinary Runnable intoInternalThreadLocal.
-
-
-
构造器详细资料
-
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.
-
Wrap
public static Runnable Wrap(Runnable runnable)
Wrap ordinary Runnable intoInternalThreadLocal.
-
-