Class RecoveryTimeouts
java.lang.Object
com.loomcache.server.persistence.RecoveryTimeouts
Bounds persistence recovery phases so startup cannot block indefinitely.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final intstatic final longstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Trun(String phaseName, long timeoutSeconds, int parallelism, RecoveryTimeouts.RecoveryTask<T> task) static <T> Trun(String phaseName, long timeoutSeconds, RecoveryTimeouts.RecoveryTask<T> task) static <A,B> RecoveryTimeouts.RecoveryPair <A, B> runPair(String phaseName, long timeoutSeconds, int parallelism, RecoveryTimeouts.RecoveryTask<A> firstTask, RecoveryTimeouts.RecoveryTask<B> secondTask) static voidvalidateParallelism(int parallelism, String fieldName) static voidvalidateSeconds(long timeoutSeconds, String fieldName)
-
Field Details
-
DEFAULT_VALIDATION_TIMEOUT_SECONDS
public static final long DEFAULT_VALIDATION_TIMEOUT_SECONDS- See Also:
-
DEFAULT_DATA_LOAD_TIMEOUT_SECONDS
public static final long DEFAULT_DATA_LOAD_TIMEOUT_SECONDS- See Also:
-
DEFAULT_PARALLELISM
public static final int DEFAULT_PARALLELISM- See Also:
-
MAX_PARALLELISM
public static final int MAX_PARALLELISM- See Also:
-
-
Method Details
-
validateSeconds
-
validateParallelism
-
run
public static <T> T run(String phaseName, long timeoutSeconds, RecoveryTimeouts.RecoveryTask<T> task) throws IOException - Throws:
IOException
-
run
public static <T> T run(String phaseName, long timeoutSeconds, int parallelism, RecoveryTimeouts.RecoveryTask<T> task) throws IOException - Throws:
IOException
-
runPair
public static <A,B> RecoveryTimeouts.RecoveryPair<A,B> runPair(String phaseName, long timeoutSeconds, int parallelism, RecoveryTimeouts.RecoveryTask<A> firstTask, RecoveryTimeouts.RecoveryTask<B> secondTask) throws IOException - Throws:
IOException
-