mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
return builder object after setting pre-shutdown action
This commit is contained in:
@@ -758,8 +758,9 @@ public interface ChronicleHashBuilder<K, H extends ChronicleHash<K, ?, ?, ?>,
|
||||
*
|
||||
* @param preShutdownAction action to run before closing the {@link ChronicleHash} in a
|
||||
* JVM shutdown hook.
|
||||
* @return this builder back
|
||||
*/
|
||||
void setPreShutdownAction(Runnable preShutdownAction);
|
||||
B setPreShutdownAction(Runnable preShutdownAction);
|
||||
|
||||
/**
|
||||
* @deprecated don't use private API in the client code
|
||||
|
||||
@@ -1591,8 +1591,9 @@ public final class ChronicleMapBuilder<K, V> implements
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPreShutdownAction(Runnable preShutdownAction) {
|
||||
public ChronicleMapBuilder<K, V> setPreShutdownAction(Runnable preShutdownAction) {
|
||||
this.preShutdownAction = preShutdownAction;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -353,8 +353,9 @@ public final class ChronicleSetBuilder<K>
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPreShutdownAction(Runnable preShutdownAction) {
|
||||
public ChronicleSetBuilder<K> setPreShutdownAction(Runnable preShutdownAction) {
|
||||
chronicleMapBuilder.setPreShutdownAction(preShutdownAction);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user