Package org.awaitility.core
Class EvaluationCleanup
- java.lang.Object
-
- org.awaitility.core.EvaluationCleanup
-
class EvaluationCleanup extends java.lang.ObjectHandles how threads and thread-pools are cleanup after each conditional evaluation round. I.e. each call tountil.- Since:
- 3.1.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Consumer<java.util.concurrent.ExecutorService>normalShutdownBehaviorprivate java.util.function.Consumer<java.util.concurrent.ExecutorService>unexpectedShutdownBehavior
-
Constructor Summary
Constructors Constructor Description EvaluationCleanup(java.util.function.Consumer<java.util.concurrent.ExecutorService> normalShutdownBehavior, java.util.function.Consumer<java.util.concurrent.ExecutorService> unexpectedShutdownBehavior)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidexecuteNormalCleanupBehavior(java.util.concurrent.ExecutorService executorService)(package private) voidexecuteUnexpectedCleanupBehavior(java.util.concurrent.ExecutorService executorService)
-
-
-
Constructor Detail
-
EvaluationCleanup
EvaluationCleanup(java.util.function.Consumer<java.util.concurrent.ExecutorService> normalShutdownBehavior, java.util.function.Consumer<java.util.concurrent.ExecutorService> unexpectedShutdownBehavior)- Parameters:
normalShutdownBehavior- The cleanup behavior that is executed when anuntilmethod call succeeds, fails or times out.unexpectedShutdownBehavior- The cleanup behavior that is executed for unexpected failures. Currently this means when exceptions are thrown from non-test threads ("uncaught exceptions")
-
-