|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.QueueTableSequence
public class QueueTableSequence
TableSequence implementation for concurrent use.
Table load successes or failures may be added on one thread, and the
sequence used from another. The nextTable
method will
block until a result is available.
Constructor Summary | |
---|---|
QueueTableSequence()
Constructor. |
Method Summary | |
---|---|
void |
addError(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueueTableSequence()
Method Detail |
---|
public void addTable(StarTable table)
table
- successfully loaded tablepublic void addError(java.lang.Throwable error)
error
- reason for unsuccessful table load attemptpublic void endSequence()
public StarTable nextTable() throws java.io.IOException
TableSequence
nextTable
in interface TableSequence
java.io.IOException
- if there is an error obtaining the table
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |