public interface ChangeRecordReader extends Closeable
Implementations must specify the following:
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this change record reader if it not already closed.
|
boolean |
hasNext()
Returns
true if this reader contains another change record,
blocking if necessary until either the next change record is available or
the end of the stream is reached. |
ChangeRecord |
readChangeRecord()
Reads the next change record, blocking if necessary until a change record
is available.
|
void close() throws IOException
ChangeRecordReader.readChangeRecord()
has returned null
.close
in interface AutoCloseable
close
in interface Closeable
IOException
- If an unexpected IO error occurred while closing.boolean hasNext() throws IOException
true
if this reader contains another change record,
blocking if necessary until either the next change record is available or
the end of the stream is reached.true
if this reader contains another change record.IOException
- If an unexpected IO error occurred.ChangeRecord readChangeRecord() throws IOException
Add
change record.IOException
- If an unexpected IO error occurred while reading the change
record.NoSuchElementException
- If this reader does not contain any more change records.Copyright © 2010-2018, ForgeRock All Rights Reserved.