public final class ThreadExecutorMap extends Object
EventExecutor
for the calling Thread
.Modifier and Type | Method and Description |
---|---|
static Executor |
apply(Executor executor,
EventExecutor eventExecutor)
Decorate the given
Executor and ensure currentExecutor() will return eventExecutor
when called from within the Runnable during execution. |
static Runnable |
apply(Runnable command,
EventExecutor eventExecutor)
Decorate the given
Runnable and ensure currentExecutor() will return eventExecutor
when called from within the Runnable during execution. |
static ThreadFactory |
apply(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 Executor apply(Executor executor, EventExecutor eventExecutor)
Executor
and ensure currentExecutor()
will return eventExecutor
when called from within the Runnable
during execution.public static Runnable apply(Runnable command, EventExecutor eventExecutor)
Runnable
and ensure currentExecutor()
will return eventExecutor
when called from within the Runnable
during execution.public static ThreadFactory apply(ThreadFactory threadFactory, EventExecutor eventExecutor)
ThreadFactory
and ensure currentExecutor()
will return eventExecutor
when called from within the Runnable
during execution.Copyright © 2008–2024 The Netty Project. All rights reserved.