public abstract class StatefulOptions extends Options
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
input |
protected boolean |
lock |
protected int |
lockTimeout |
| Constructor and Description |
|---|
StatefulOptions(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
input(boolean input)
Asks for input if necessary if
true is specified. |
void |
lock(boolean lock)
Disables locking of state files during state-related operations if
true is specified. |
void |
lockTimeout(int lockTimeout)
Overrides the time Terraform will wait to acquire a state lock with the value specified.
|
protected boolean input
protected boolean lock
protected int lockTimeout
public void input(boolean input)
true is specified.
Default is true
input - true to ask for input if necessary.public void lock(boolean lock)
true is specified.
Default is false
lock - true to disable locking of state files during state-related operations.public void lockTimeout(int lockTimeout)
Default is 0, which causes immediate failure if the lock is already held by another process.
lockTimeout - The time Terraform will wait to acquire a state lock.