Class EvaluationCleanup

java.lang.Object
org.awaitility.core.EvaluationCleanup

class EvaluationCleanup extends Object
Handles how threads and thread-pools are cleanup after each conditional evaluation round. I.e. each call to until.
Since:
3.1.0
  • Field Details

  • Constructor Details

    • EvaluationCleanup

      EvaluationCleanup(Consumer<ExecutorService> normalShutdownBehavior, Consumer<ExecutorService> unexpectedShutdownBehavior)
      Parameters:
      normalShutdownBehavior - The cleanup behavior that is executed when an until method 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")
  • Method Details

    • executeNormalCleanupBehavior

      void executeNormalCleanupBehavior(ExecutorService executorService)
    • executeUnexpectedCleanupBehavior

      void executeUnexpectedCleanupBehavior(ExecutorService executorService)