|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.jme3.network.kernel.tcp.SelectorKernel.SelectorThread
protected class SelectorKernel.SelectorThread
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 Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SelectorKernel.SelectorThread()
|
Method Summary | |
---|---|
protected void |
accept(java.nio.channels.SelectionKey key)
|
protected void |
cancel(NioEndpoint p)
|
protected void |
cancel(java.nio.channels.SelectionKey key,
java.nio.channels.SocketChannel c)
|
void |
close()
|
void |
connect()
|
protected void |
read(java.nio.channels.SelectionKey key)
|
void |
run()
|
protected void |
select()
|
protected void |
setupSelectorOptions()
|
protected void |
wakeupSelector()
|
protected void |
write(java.nio.channels.SelectionKey key)
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SelectorKernel.SelectorThread()
Method Detail |
---|
public void connect() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
protected void wakeupSelector()
protected void setupSelectorOptions()
protected void accept(java.nio.channels.SelectionKey key) throws java.io.IOException
java.io.IOException
protected void cancel(NioEndpoint p) throws java.io.IOException
java.io.IOException
protected void cancel(java.nio.channels.SelectionKey key, java.nio.channels.SocketChannel c) throws java.io.IOException
java.io.IOException
protected void read(java.nio.channels.SelectionKey key) throws java.io.IOException
java.io.IOException
protected void write(java.nio.channels.SelectionKey key) throws java.io.IOException
java.io.IOException
protected void select() throws java.io.IOException
java.io.IOException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |