java.io.Serializable, java.lang.Comparable<ContainerRetryPolicy>@Public @Unstable public enum ContainerRetryPolicy extends java.lang.Enum<ContainerRetryPolicy>
Retry policy for relaunching a Container.
| Enum Constant | 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 | Description |
|---|---|---|
static ContainerRetryPolicy |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2008–2025 Apache Software Foundation. All rights reserved.