|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread jtge.engine.io.AsynchronousAcceptor
Wraps an acceptor to provide an asynchronous functionning.
This acceptor provides a non-blocking open and a blocking close.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
AsynchronousAcceptor(IAcceptor acceptor)
Create an asynchronous acceptor. |
Method Summary | |
void |
close()
Close the acceptor. Whether this method is blocking or not depends on the implementation. Calling this method while the acceptor is not open should not generate a failure. |
void |
open()
Open the acceptor and accept connections. Whether this method is blocking or not depends on the implementation. |
void |
run()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AsynchronousAcceptor(IAcceptor acceptor)
acceptor
- the acceptor to wrapMethod Detail |
public final void run()
run
in interface java.lang.Runnable
public final void open()
Whether this method is blocking or not depends on the implementation.
open
in interface IAcceptor
public final void close()
Whether this method is blocking or not depends on the implementation.
Calling this method while the acceptor is not open should not generate a failure.
close
in interface IAcceptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |