public class DataQueue extends DataConnection
A data queue is used to send data between processes. It is synchronized to support processes in different threads, even on different computers (grid computing). Each element in the queue is called a data block. The queue can also send status values and events.
| Constructor and Description |
|---|
DataQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(net.opengis.swe.v20.DataBlock data)
Adds DataBlock at the end of the list
|
void |
clear()
Clear all data bocks in the queue
|
net.opengis.swe.v20.DataBlock |
get()
Default version of previous method with timeout set to 0
This will make us wait until a new value arrives on the queue
|
net.opengis.swe.v20.DataBlock |
get(long timeout)
Gets the first DataBlock from the queue
|
boolean |
isDataAvailable() |
String |
toString() |
check, check, getDestinationComponent, getDestinationProcess, getProperty, getSourceComponent, getSourceProcess, setDataAvailable, setDestinationComponent, setDestinationProcess, setProperty, setSourceComponent, setSourceProcess, transferDataBlockspublic void add(net.opengis.swe.v20.DataBlock data)
data - public net.opengis.swe.v20.DataBlock get(long timeout)
throws InterruptedException
timeout - maximum time to wait until data is available, in msInterruptedExceptionpublic net.opengis.swe.v20.DataBlock get()
throws InterruptedException
InterruptedExceptionpublic boolean isDataAvailable()
isDataAvailable in class DataConnectionpublic void clear()
Copyright © 2016 VAST Team / Sensia Software LLC. All rights reserved.