Class I2CPMessageQueue

java.lang.Object
net.i2p.internal.I2CPMessageQueue
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
I2CPMessageQueueImpl

public abstract class I2CPMessageQueue
extends Object
implements Closeable
Contains the methods to talk to a router or client via I2CP, when both are in the same JVM. This interface contains methods to access two queues, one for transmission and one for receiving. The methods are identical to those in java.util.concurrent.BlockingQueue. Reading may be done in a thread using the QueuedI2CPMessageReader class. Non-blocking writing may be done directly with offer().
Since:
0.8.3
Author:
zzz