@InterfaceAudience.Public @InterfaceStability.Unstable public enum ContainerRetryPolicy extends Enum<ContainerRetryPolicy>
Retry policy for relaunching a Container
.
Enum Constant and Description |
---|
NEVER_RETRY
Never retry.
|
RETRY_ON_ALL_ERRORS
Retry for all error codes.
|
RETRY_ON_SPECIFIC_ERROR_CODES
Retry for specific error codes.
|
Modifier and Type | Method and Description |
---|---|
static ContainerRetryPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContainerRetryPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContainerRetryPolicy NEVER_RETRY
public static final ContainerRetryPolicy RETRY_ON_ALL_ERRORS
public static final ContainerRetryPolicy RETRY_ON_SPECIFIC_ERROR_CODES
public static ContainerRetryPolicy[] values()
for (ContainerRetryPolicy c : ContainerRetryPolicy.values()) System.out.println(c);
public static ContainerRetryPolicy 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 © 2019 Apache Software Foundation. All rights reserved.