|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A mixin interface that can be implemented by RecordSource's. Typical uses would be for live sources (e.g. sampling data from a running experiment) or reading data over a slow connection.
Field Summary |
Fields inherited from interface org.freehep.record.source.SequentialRecordSource |
UNKNOWN |
Method Summary | |
void |
addRecordListener(RecordReadyListener l)
Add a record listener that will be notified when the record is ready |
boolean |
isRecordReady()
Test if non-blocking mode is enabled. |
void |
removeRecordListener(RecordReadyListener l)
Remove a record listener |
void |
setNonBlocking(boolean value)
When non blocking is set all methods which would normally block, such as next() previous(), skip(), goToRecord(), will instead return immediately. |
void |
waitForRecordReady()
This method will block until the requested record is ready |
Methods inherited from interface org.freehep.record.source.SequentialRecordSource |
close, getCurrentRecord, getEstimatedSize, getRecordClass, getSourceName, next, releaseRecord, rewind |
Method Detail |
public void setNonBlocking(boolean value)
value
- true
to enable non-blocking mode, false
to disable.public boolean isRecordReady()
true
if non-blocking mode is enabled.
boolean isNonBlocking();
/**
Returns true is the requested record is available.public void waitForRecordReady() throws InterruptedException
InterruptedException
public void addRecordListener(RecordReadyListener l)
public void removeRecordListener(RecordReadyListener l)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |