propogating interupted exception, so that resources can be closed when it is received.

This commit is contained in:
Rob Austin
2015-02-02 22:46:47 +00:00
parent 5f627dc6b4
commit 915c81f0e7
7 changed files with 90 additions and 45 deletions
@@ -109,7 +109,7 @@ interface Replica extends Closeable {
* @return {@code true} if the entry was accepted by the {@code callback.onEntry()} method,
* {@code false} if the entry was not accepted or was not available
*/
boolean nextEntry(@NotNull final EntryCallback callback, final int chronicleId);
boolean nextEntry(@NotNull final EntryCallback callback, final int chronicleId) throws InterruptedException;
/**
* Dirties all entries with a modification time equal to {@code fromTimeStamp} or newer. It
@@ -119,7 +119,7 @@ interface Replica extends Closeable {
*
* @param fromTimeStamp the timestamp from which all entries should be dirty
*/
void dirtyEntries(long fromTimeStamp);
void dirtyEntries(long fromTimeStamp) throws InterruptedException;
}
/**