mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Add throwExceptionIfClosed(); to most public methods for classes implementing Closeable, https://github.com/OpenHFT/Chronicle-Core/issues/116
This commit is contained in:
@@ -114,6 +114,7 @@ class OldDeletedEntriesCleanupThread extends Thread
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
throwExceptionIfClosed();
|
||||
if (System.currentTimeMillis() - startTime < 1_000)
|
||||
return;
|
||||
|
||||
@@ -175,6 +176,7 @@ class OldDeletedEntriesCleanupThread extends Thread
|
||||
|
||||
@Override
|
||||
public boolean test(ReplicableEntry e) {
|
||||
throwExceptionIfClosed();
|
||||
if (shutdown)
|
||||
return false;
|
||||
if (e instanceof MapAbsentEntry) {
|
||||
|
||||
Reference in New Issue
Block a user