waitUntilReady abstract method

Future<void> waitUntilReady(
  1. WaitStrategyTarget target
)

Waits until the container described by target is ready.

Must be implemented by every concrete strategy. Implementations should call poll to perform the actual waiting loop, then throw an appropriate exception if readiness was not achieved:

  • TimeoutException — the startupTimeout elapsed before the condition was met.
  • StateError — the container entered a terminal state from which it cannot recover (e.g. 'unhealthy', 'exited'), making further polling pointless.

Implementation

Future<void> waitUntilReady(WaitStrategyTarget target);