Package one.nio.server
Class PayloadThread
java.lang.Object
java.lang.Thread
one.nio.server.PayloadThread
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
SelectorThread
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionPayloadThread(Runnable target) PayloadThread(Runnable target, String name) PayloadThread(String name) -
Method Summary
Modifier and TypeMethodDescriptionstatic PayloadThreadcurrent()final Objectpayload()voidrun()final SchedulingPolicyfinal voidsetPayload(Object payload) final voidsetSchedulingPolicy(SchedulingPolicy schedulingPolicy) 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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield