public abstract static class GenericContainer.AbstractWaitStrategy extends Object implements WaitStrategy
Modifier and Type | Field and Description |
---|---|
protected GenericContainer |
container |
protected Duration |
startupTimeout |
Constructor and Description |
---|
AbstractWaitStrategy() |
Modifier and Type | Method and Description |
---|---|
protected Integer |
getLivenessCheckPort() |
protected org.rnorth.ducttape.ratelimits.RateLimiter |
getRateLimiter() |
protected org.slf4j.Logger |
logger() |
protected abstract void |
waitUntilReady()
Wait until
container has started. |
void |
waitUntilReady(GenericContainer container)
Wait until the container has started.
|
WaitStrategy |
withStartupTimeout(Duration startupTimeout)
Set the duration of waiting time until container treated as started.
|
protected GenericContainer container
@NonNull protected Duration startupTimeout
public void waitUntilReady(GenericContainer container)
waitUntilReady
in interface WaitStrategy
container
- the container for which to waitprotected abstract void waitUntilReady()
container
has started.public WaitStrategy withStartupTimeout(Duration startupTimeout)
withStartupTimeout
in interface WaitStrategy
startupTimeout
- timeoutWaitStrategy.waitUntilReady(GenericContainer)
protected org.slf4j.Logger logger()
protected Integer getLivenessCheckPort()
protected org.rnorth.ducttape.ratelimits.RateLimiter getRateLimiter()
Copyright © 2017. All rights reserved.