public class SelectableBiDirectionalQueue
extends java.lang.Object
remote().| Constructor and Description |
|---|
SelectableBiDirectionalQueue()
Normal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isShutDown()
Returns whether or not the queue is shutdown.
|
VaNode |
read()
Reads a ReactorEvent sent from the remote end of the queue.
|
java.nio.channels.SelectableChannel |
readChannel()
Returns the SelectableChannel of the queue that can be registered
with a selector.
|
int |
readQueueSize()
Returns the size of the read queue.
|
SelectableBiDirectionalQueue |
remote()
Helper method which will create a new SelectableBiDirectionalQueue that
uses the remote end of this queue.
|
void |
shutdown()
Shuts down the selectable bidirectional queue.
|
boolean |
write(VaNode node)
Writes a ReactorEvent to the remote end of the queue.
|
int |
writeQueueSize()
Returns the size of the write queue.
|
public SelectableBiDirectionalQueue()
public boolean isShutDown()
public java.nio.channels.SelectableChannel readChannel()
public int readQueueSize()
public int writeQueueSize()
public VaNode read()
readChannel()
), read should be called until it returns null or
readQueueSize() is zero. This will reset the internal notifier
and allow the selector to fire again later.public boolean write(VaNode node)
node - ReactorEvent to write to remote end of queuepublic SelectableBiDirectionalQueue remote()
SelectableBiDirectionalQueue(SelectableBiDirectionalQueue)
constructor.public void shutdown()
Copyright @ 2019 Thomson Reuters. All Rights Reserved.