|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.jabber.jabberbeans.sax.OutputStreamHandler
Threaded queue for outgoing data, so that packets send asynchronously
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
OutputStreamHandler(ConnectionBean.OutputStreamInterface osi)
Creates a new OutputStreamHandler instance. |
Method Summary | |
void |
handleThreadDeath(java.lang.Exception ex)
|
void |
handleThreadDeath(java.lang.Exception ex,
Packet p)
|
void |
run()
Thread which loops sending packets to the server, and sending out messages when the packets have been sent out |
void |
send(Packet p)
Adds an element to the queue for sending. |
void |
setOutputStream(java.io.OutputStream out)
|
void |
shutdown()
shutdown is used to notify the thread to shutdown (such as
in the case of a client-requested disconnect). |
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 OutputStreamHandler(ConnectionBean.OutputStreamInterface osi)
OutputStreamHandler
instance.
Method Detail |
public void setOutputStream(java.io.OutputStream out)
public final void send(Packet p)
p
- Packet to sendpublic void shutdown()
shutdown
is used to notify the thread to shutdown (such as
in the case of a client-requested disconnect).
public void handleThreadDeath(java.lang.Exception ex, Packet p)
public void handleThreadDeath(java.lang.Exception ex)
public final 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 |