class I2CPMessageQueueImpl
extends net.i2p.internal.I2CPMessageQueue
| Constructor and Description |
|---|
I2CPMessageQueueImpl(BlockingQueue<net.i2p.data.i2cp.I2CPMessage> in,
BlockingQueue<net.i2p.data.i2cp.I2CPMessage> out) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
offer(net.i2p.data.i2cp.I2CPMessage msg)
Send a message, nonblocking
|
boolean |
offer(net.i2p.data.i2cp.I2CPMessage msg,
long timeout)
Send a message, blocking.
|
net.i2p.data.i2cp.I2CPMessage |
poll()
Receive a message, nonblocking
|
void |
put(net.i2p.data.i2cp.I2CPMessage msg)
Send a message, blocking until space is available
|
net.i2p.data.i2cp.I2CPMessage |
take()
Receive a message, blocking until one is available
|
public I2CPMessageQueueImpl(BlockingQueue<net.i2p.data.i2cp.I2CPMessage> in, BlockingQueue<net.i2p.data.i2cp.I2CPMessage> out)
public boolean offer(net.i2p.data.i2cp.I2CPMessage msg)
offer in class net.i2p.internal.I2CPMessageQueuepublic boolean offer(net.i2p.data.i2cp.I2CPMessage msg,
long timeout)
throws InterruptedException
offer in class net.i2p.internal.I2CPMessageQueuetimeout - how long to wait for space (ms)InterruptedExceptionpublic net.i2p.data.i2cp.I2CPMessage poll()
poll in class net.i2p.internal.I2CPMessageQueuepublic void put(net.i2p.data.i2cp.I2CPMessage msg)
throws InterruptedException
put in class net.i2p.internal.I2CPMessageQueueInterruptedExceptionpublic net.i2p.data.i2cp.I2CPMessage take()
throws InterruptedException
take in class net.i2p.internal.I2CPMessageQueueInterruptedException