Package com.yahoo.config.application.api
Class DeploymentSpec.Delay
- java.lang.Object
-
- com.yahoo.config.application.api.DeploymentSpec.Step
-
- com.yahoo.config.application.api.DeploymentSpec.Delay
-
- Enclosing class:
- DeploymentSpec
public static class DeploymentSpec.Delay extends DeploymentSpec.Step
A deployment step which is to wait for some time before progressing to the next step
-
-
Constructor Summary
Constructors Constructor Description Delay(java.time.Duration duration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Duration
delay()
The delay introduced by this step (beyond the time it takes to execute the step).boolean
deploysTo(com.yahoo.config.provision.Environment environment, java.util.Optional<com.yahoo.config.provision.RegionName> region)
Returns whether this step deploys to the given environment, and (if specified) regionjava.time.Duration
duration()
java.lang.String
toString()
-
Methods inherited from class com.yahoo.config.application.api.DeploymentSpec.Step
deploysTo, steps, zones
-
-
-
-
Method Detail
-
duration
public java.time.Duration duration()
-
delay
public java.time.Duration delay()
Description copied from class:DeploymentSpec.Step
The delay introduced by this step (beyond the time it takes to execute the step). Default is zero.- Overrides:
delay
in classDeploymentSpec.Step
-
deploysTo
public boolean deploysTo(com.yahoo.config.provision.Environment environment, java.util.Optional<com.yahoo.config.provision.RegionName> region)
Description copied from class:DeploymentSpec.Step
Returns whether this step deploys to the given environment, and (if specified) region- Specified by:
deploysTo
in classDeploymentSpec.Step
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-