public final class ThreadExecutorMap
extends java.lang.Object
EventExecutor
for the calling Thread
.限定符和类型 | 方法和说明 |
---|---|
static java.util.concurrent.Executor |
apply(java.util.concurrent.Executor executor,
EventExecutor eventExecutor)
Decorate the given
Executor and ensure currentExecutor() will return eventExecutor
when called from within the Runnable during execution. |
static java.lang.Runnable |
apply(java.lang.Runnable command,
EventExecutor eventExecutor)
Decorate the given
Runnable and ensure currentExecutor() will return eventExecutor
when called from within the Runnable during execution. |
static java.util.concurrent.ThreadFactory |
apply(java.util.concurrent.ThreadFactory threadFactory,
EventExecutor eventExecutor)
Decorate the given
ThreadFactory and ensure currentExecutor() will return eventExecutor
when called from within the Runnable during execution. |
static EventExecutor |
currentExecutor()
|
public static EventExecutor currentExecutor()
public static java.util.concurrent.Executor apply(java.util.concurrent.Executor executor, EventExecutor eventExecutor)
Executor
and ensure currentExecutor()
will return eventExecutor
when called from within the Runnable
during execution.public static java.lang.Runnable apply(java.lang.Runnable command, EventExecutor eventExecutor)
Runnable
and ensure currentExecutor()
will return eventExecutor
when called from within the Runnable
during execution.public static java.util.concurrent.ThreadFactory apply(java.util.concurrent.ThreadFactory threadFactory, EventExecutor eventExecutor)
ThreadFactory
and ensure currentExecutor()
will return eventExecutor
when called from within the Runnable
during execution.