public interface AsynchronousRecordSource extends RecordSource
Modifier and Type | Method and Description |
---|---|
void |
addRecordListener(RecordReadyListener l)
Add a record listener that will be notified when the record is ready
|
boolean |
isNonBlocking()
Test if non-blocking mode is enabled.
|
boolean |
isRecordReady()
Returns true is the requested record is available.
|
void |
removeRecordListener(RecordReadyListener l)
Remove a record listener
|
void |
setNonBlocking(boolean value)
Sets non-blocking mode.
|
void |
waitForRecordReady()
This method will block until the requested record is ready
|
close, current, getCurrentIndex, getCurrentRecord, getCurrentTag, getEstimatedSize, getName, getRecordClass, getTags, hasCurrent, hasIndex, hasNext, hasPrevious, hasRewind, hasShift, hasTag, jump, jump, next, parseTag, previous, releaseRecord, rewind, shift, size, supportsCurrent, supportsIndex, supportsNext, supportsPrevious, supportsRewind, supportsShift, supportsTag
void setNonBlocking(boolean value)
boolean isNonBlocking()
true
if non-blocking mode is enabled.boolean isRecordReady()
void waitForRecordReady() throws InterruptedException
InterruptedException
void addRecordListener(RecordReadyListener l)
void removeRecordListener(RecordReadyListener l)
Copyright © 2000-2012 FreeHEP. All Rights Reserved.