- java.lang.Object
-
- io.netty5.util.internal.ThreadExecutorMap
-
public final class ThreadExecutorMap extends Object
Allow to retrieve theEventExecutor
for the callingThread
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Runnable
apply(Runnable command, EventExecutor eventExecutor)
Decorate the givenRunnable
and ensurecurrentExecutor()
will returneventExecutor
when called from within theRunnable
during execution.static Executor
apply(Executor executor, EventExecutor eventExecutor)
Decorate the givenExecutor
and ensurecurrentExecutor()
will returneventExecutor
when called from within theRunnable
during execution.static ThreadFactory
apply(ThreadFactory threadFactory, EventExecutor eventExecutor)
Decorate the givenThreadFactory
and ensurecurrentExecutor()
will returneventExecutor
when called from within theRunnable
during execution.static EventExecutor
currentExecutor()
-
-
-
Method Detail
-
currentExecutor
public static EventExecutor currentExecutor()
-
apply
public static Executor apply(Executor executor, EventExecutor eventExecutor)
Decorate the givenExecutor
and ensurecurrentExecutor()
will returneventExecutor
when called from within theRunnable
during execution.
-
apply
public static Runnable apply(Runnable command, EventExecutor eventExecutor)
Decorate the givenRunnable
and ensurecurrentExecutor()
will returneventExecutor
when called from within theRunnable
during execution.
-
apply
public static ThreadFactory apply(ThreadFactory threadFactory, EventExecutor eventExecutor)
Decorate the givenThreadFactory
and ensurecurrentExecutor()
will returneventExecutor
when called from within theRunnable
during execution.
-
-