- java.lang.Object
-
- java.lang.Thread
-
- io.netty5.util.concurrent.FastThreadLocalThread
-
- All Implemented Interfaces:
Runnable
public class FastThreadLocalThread extends Thread
A specialThread
that provides fast access toFastThreadLocal
variables.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description FastThreadLocalThread()
FastThreadLocalThread(Runnable target)
FastThreadLocalThread(Runnable target, String name)
FastThreadLocalThread(String name)
FastThreadLocalThread(ThreadGroup group, Runnable target)
FastThreadLocalThread(ThreadGroup group, Runnable target, String name)
FastThreadLocalThread(ThreadGroup group, Runnable target, String name, long stackSize)
FastThreadLocalThread(ThreadGroup group, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
willCleanupFastThreadLocals()
static boolean
willCleanupFastThreadLocals(Thread thread)
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
FastThreadLocalThread
public FastThreadLocalThread()
-
FastThreadLocalThread
public FastThreadLocalThread(Runnable target)
-
FastThreadLocalThread
public FastThreadLocalThread(ThreadGroup group, Runnable target)
-
FastThreadLocalThread
public FastThreadLocalThread(String name)
-
FastThreadLocalThread
public FastThreadLocalThread(ThreadGroup group, String name)
-
FastThreadLocalThread
public FastThreadLocalThread(ThreadGroup group, Runnable target, String name)
-
FastThreadLocalThread
public FastThreadLocalThread(ThreadGroup group, Runnable target, String name, long stackSize)
-
-
Method Detail
-
willCleanupFastThreadLocals
@UnstableApi public boolean willCleanupFastThreadLocals()
-
willCleanupFastThreadLocals
@UnstableApi public static boolean willCleanupFastThreadLocals(Thread thread)
-
-