|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.ClientWriterRunner
class ClientWriterRunner
Copied from net.i2p.router.client We need a single thread that writes so we don't have issues with the Piped Streams used in InternalSocket.
Constructor Summary | |
---|---|
ClientWriterRunner(OutputStream out,
I2PSessionImpl session)
starts the thread too |
Method Summary | |
---|---|
void |
addMessage(I2CPMessage msg)
Add this message to the writer's queue. |
void |
run()
|
void |
stopWriting()
No more messages - dont even try to send what we have |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientWriterRunner(OutputStream out, I2PSessionImpl session)
Method Detail |
---|
public void addMessage(I2CPMessage msg) throws I2PSessionException
I2PSessionException
- if we wait too long or are interruptedpublic void stopWriting()
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |