mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
add pre-shutdown action to be executed inside ChronicleHashCloseOnExitHook.
This is useful when we want to do an orderly shutdown. For example: To carry out graceful shutdown and explicitly control when a ChronicleHash is closed, a pre-shutdown action can be a wait on a CountDownLatch that would be released appropriately.
This commit is contained in:
@@ -116,4 +116,9 @@ class ChronicleMapBuilderPrivateAPI<K, V>
|
||||
public void remoteOperations(MapRemoteOperations<K, V, ?> remoteOperations) {
|
||||
b.remoteOperations(remoteOperations);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Runnable getPreShutdownAction() {
|
||||
return b.preShutdownAction;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user