|
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.BurstReceiverHandler
client side asynchronous burst handler. Used in conjunction with SessionConnector. BurstReceiverHandler handles asynchronous bursts in a separate thread. It passes incoming burst parts to a BurstReceiver. BurstReceiverHandler can manage multiple asynchronous bursts at the same time though this is not supported by the server (and probably never will be).
As asynchronous burst parts may be received before a handler is installed for the burst, BurstReceiverHandler buffers these burst parts for a certain time (20 seconds by default). On the other hand, a BurstReceiver is removed after 20 seconds of idling (e.g. no burst parts have been received for this BurstReceiver). Deletion is of course forced if a BURSTEND/STOPPED/ERROR is received for this BurstReceiver.
The aynchronous communication system in the GJSA needs a complete conceptual overhaul.
Field Summary | |
static int |
ALIVEMILLIS
idle time a BurstReceiver of parts of a burst are stored before deletion |
(package private) java.util.Map |
handlers
|
(package private) int |
receivednum
|
(package private) ThreadInterface |
ti
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
BurstReceiverHandler()
public constructor. |
Method Summary | |
ThreadInterface |
getProducerInterface()
returns the interface burst parts must be send to. |
void |
run()
run loop. |
void |
setBurstReceiver(int bnum,
BurstReceiver br)
sets a burst receiver for an asynchronous burst. |
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 |
public static int ALIVEMILLIS
ThreadInterface ti
java.util.Map handlers
int receivednum
Constructor Detail |
public BurstReceiverHandler()
Method Detail |
public ThreadInterface getProducerInterface()
public void setBurstReceiver(int bnum, BurstReceiver br)
public void run()
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |