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
@@ -32,7 +32,7 @@ interface SharedSegment<K, V> {
/**
* if passed segmentState is null, null is returned instead of readLock
*/
AutoCloseable readLock(@Nullable VanillaChronicleMap.SegmentState segmentState);
AutoCloseable readLock(@Nullable VanillaChronicleMap.SegmentState segmentState) throws InterruptedException;
Map.Entry<K, V> getEntry(@NotNull VanillaChronicleMap.SegmentState segmentState, long pos);