Package com.google.code.yanf4j.nio.impl
Class Reactor
- java.lang.Object
-
- java.lang.Thread
-
- com.google.code.yanf4j.nio.impl.Reactor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReactor.PaddingAtomicBooleanstatic classReactor.RegisterEvent-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_WAITstatic intJVMBUG_THRESHHOLDJVM bug thresholdstatic intJVMBUG_THRESHHOLD1static intJVMBUG_THRESHHOLD2-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatchEvent(Set<SelectionKey> selectedKeySet)Dispatch selected eventintgetReactorIndex()SelectorgetSelector()voidpostSelect(Set<SelectionKey> selectedKeys, Set<SelectionKey> allKeys)voidregisterChannel(SelectableChannel channel, int ops, Object attachment)voidregisterSession(Session session, EventType event)voidrun()-
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
JVMBUG_THRESHHOLD
public static final int JVMBUG_THRESHHOLD
JVM 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:
- Constant Field Values
-
-
Method Detail
-
getSelector
public final Selector getSelector()
-
getReactorIndex
public int getReactorIndex()
-
dispatchEvent
public final void dispatchEvent(Set<SelectionKey> selectedKeySet)
Dispatch selected event- Parameters:
selectedKeySet-
-
postSelect
public final void postSelect(Set<SelectionKey> selectedKeys, Set<SelectionKey> allKeys)
-
registerChannel
public final void registerChannel(SelectableChannel channel, int ops, Object attachment)
-
-