public abstract class WaitForOption extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
WaitForOption.CheckingPeriod
This class represents an option to set how frequently the resource status should be checked.
|
static class |
WaitForOption.Timeout
This class represents an option to set the maximum time to wait for the resource's status to
reach the desired state.
|
| Modifier and Type | Method and Description |
|---|---|
static WaitForOption.CheckingPeriod |
checkEvery(long checkEvery,
TimeUnit unit)
Returns an option to set how frequently the resource status should be checked.
|
static WaitForOption.Timeout |
timeout(long timeout,
TimeUnit unit)
Returns an option to set the maximum time to wait.
|
public static WaitForOption.CheckingPeriod checkEvery(long checkEvery, TimeUnit unit)
checkEvery - the checking periodunit - the time unit of the checking periodpublic static WaitForOption.Timeout timeout(long timeout, TimeUnit unit)
timeout - the maximum time to wait, expressed in unitunit - the time unit of the timeoutCopyright © 2016 Google. All rights reserved.