|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread biz.chitec.quarterback.gjsa.server.ServerWriter
Writer thread for connectionbound connections. Only needed in connectionbound case where it creates the "writer thread". Waits for anything to arrive on its ThreadInterface and writes it out to the SocketLayer. ServerWriter takes control over the socket closing from SocketLayer as soon as its run() method is executed. In case of any error, especially a closed ThreadInterface, it will close the socket.
Field Summary | |
private boolean |
dostop
|
private int |
myconnnr
|
private SocketLayer |
sly
|
private ThreadInterface |
writerinterface
interface to the writer thread. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ServerWriter(SocketLayer slyx,
ServerThreadBase stbx,
ThreadInterface tix)
Constructor for a non-threadified ServerWriter. |
Method Summary | |
void |
doStop()
Initiate a stop |
void |
run()
Main run loop for threadified writers. |
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 |
Field Detail |
private ThreadInterface writerinterface
private SocketLayer sly
private int myconnnr
private boolean dostop
Constructor Detail |
public ServerWriter(SocketLayer slyx, ServerThreadBase stbx, ThreadInterface tix) throws java.io.IOException
java.io.IOException
- Initialisation of socket wrapper classes failedMethod Detail |
public void doStop()
public void run()
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |