public class QueueTableSequence extends Object implements TableSequence
nextTable
method will
block until a result is available.Constructor and Description |
---|
QueueTableSequence()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(Throwable error)
Adds a load error to the queue.
|
void |
addTable(StarTable table)
Adds a table to the queue.
|
void |
endSequence()
Indicates that no more load success or failure indications will be
added by the queue writer.
|
StarTable |
nextTable()
Returns the next table in the sequence, or null if the end of
the sequence is reached.
|
public void addTable(StarTable table)
table
- successfully loaded tablepublic void addError(Throwable error)
error
- reason for unsuccessful table load attemptpublic void endSequence()
public StarTable nextTable() throws IOException
TableSequence
nextTable
in interface TableSequence
IOException
- if there is an error obtaining the tableCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.