Class Reactor
java.lang.Object
java.lang.Thread
com.google.code.yanf4j.nio.impl.Reactor
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intJVM bug thresholdstatic final intstatic final intFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddispatchEvent(Set<SelectionKey> selectedKeySet) Dispatch selected eventintfinal Selectorfinal voidpostSelect(Set<SelectionKey> selectedKeys, Set<SelectionKey> allKeys) final voidregisterChannel(SelectableChannel channel, int ops, Object attachment) final voidregisterSession(Session session, EventType event) voidrun()Methods 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
-
JVMBUG_THRESHHOLD
public static final int JVMBUG_THRESHHOLDJVM bug threshold -
JVMBUG_THRESHHOLD2
public static final int JVMBUG_THRESHHOLD2 -
JVMBUG_THRESHHOLD1
public static final int JVMBUG_THRESHHOLD1 -
DEFAULT_WAIT
public static final int DEFAULT_WAIT- See Also:
-
-
Method Details
-
getSelector
-
getReactorIndex
public int getReactorIndex() -
run
-
dispatchEvent
Dispatch selected event- Parameters:
selectedKeySet-
-
registerSession
-
postSelect
-
registerChannel
-