public enum RestartPolicy extends Enum<RestartPolicy>
| Enum Constant and Description |
|---|
Never
Never restarts a successful or failed container.
|
OnFailure
Restart a failed container with an exponential back-off delay, capped at 5 minutes.
|
| Modifier and Type | Method and Description |
|---|---|
static RestartPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestartPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestartPolicy OnFailure
public static final RestartPolicy Never
public static RestartPolicy[] values()
for (RestartPolicy c : RestartPolicy.values()) System.out.println(c);
public static RestartPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020 Pivotal Software, Inc.. All rights reserved.