Class SelectorThread
java.lang.Object
java.lang.Thread
one.nio.server.PayloadThread
one.nio.server.SelectorThread
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intfinal int(package private) int(package private) longfinal Selector(package private) longFields inherited from class PayloadThread
payload, schedulingPolicyFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionSelectorThread(int num, int dedicatedCpu, SchedulingPolicy schedulingPolicy, String name) -
Method Summary
Methods inherited from class PayloadThread
current, payload, schedulingPolicy, setPayload, setSchedulingPolicyMethods inherited from class Thread
activeCount, checkAccess, clone, 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
BUFFER_SIZE
private static final int BUFFER_SIZE- See Also:
-
selector
-
dedicatedCpu
public final int dedicatedCpu -
operations
long operations -
sessions
long sessions -
maxReady
int maxReady
-
-
Constructor Details
-
SelectorThread
public SelectorThread(int num, int dedicatedCpu, SchedulingPolicy schedulingPolicy, String name) throws IOException - Throws:
IOException
-
-
Method Details
-
shutdown
public void shutdown() -
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classPayloadThread
-