Package net.i2p.client.impl
Class ClientWriterRunner
- java.lang.Object
-
- net.i2p.client.impl.ClientWriterRunner
-
-
Constructor Summary
Constructors Constructor Description ClientWriterRunner(OutputStream out, I2PSessionImpl session)As of 0.9.11 does not start the thread, caller must call startWriting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessage(I2CPMessage msg)Add this message to the writer's queue.voidrun()voidstartWriting()voidstopWriting()No more messages - dont even try to send what we have
-
-
-
Constructor Detail
-
ClientWriterRunner
public ClientWriterRunner(OutputStream out, I2PSessionImpl session)
As of 0.9.11 does not start the thread, caller must call startWriting()
-
-
Method Detail
-
startWriting
public void startWriting()
- Since:
- 0.9.11
-
addMessage
public void addMessage(I2CPMessage msg) throws I2PSessionException
Add this message to the writer's queue. Blocking if queue is full.- Throws:
I2PSessionException- if we wait too long or are interrupted
-
stopWriting
public void stopWriting()
No more messages - dont even try to send what we have
-
-