Package com.jme3.network.kernel.tcp
Class SelectorKernel.SelectorThread
java.lang.Object
java.lang.Thread
com.jme3.network.kernel.tcp.SelectorKernel.SelectorThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- SelectorKernel
This class is purposely tucked neatly away because
  messing with the selector from other threads for any
  reason is very bad.  This is the safest architecture.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.ThreadThread.State, Thread.UncaughtExceptionHandler
- 
Field SummaryFields inherited from class java.lang.ThreadMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaccept(SelectionKey key) protected voidprotected voidcancel(SelectionKey key, SocketChannel c) voidclose()voidconnect()protected voidread(SelectionKey key) voidrun()protected voidselect()protected voidprotected voidprotected voidwrite(SelectionKey key) Methods inherited from class java.lang.ThreadactiveCount, 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
- 
Constructor Details- 
SelectorThreadpublic SelectorThread()
 
- 
- 
Method Details- 
connect- Throws:
- IOException
 
- 
close- Throws:
- IOException
- InterruptedException
 
- 
wakeupSelectorprotected void wakeupSelector()
- 
setupSelectorOptionsprotected void setupSelectorOptions()
- 
accept- Throws:
- IOException
 
- 
cancel- Throws:
- IOException
 
- 
cancel- Throws:
- IOException
 
- 
read- Throws:
- IOException
 
- 
write- Throws:
- IOException
 
- 
select- Throws:
- IOException
 
- 
runpublic void run()
 
-