public enum ApacheClientRetryPolicy extends Enum<ApacheClientRetryPolicy>
Enum Constant and Description |
---|
AUTO_RETRY
自动重试
|
NO_RETRY
不重试
|
Modifier and Type | Method and Description |
---|---|
org.apache.http.client.HttpRequestRetryHandler |
getHandler() |
static ApacheClientRetryPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApacheClientRetryPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApacheClientRetryPolicy NO_RETRY
public static final ApacheClientRetryPolicy AUTO_RETRY
public static ApacheClientRetryPolicy[] values()
for (ApacheClientRetryPolicy c : ApacheClientRetryPolicy.values()) System.out.println(c);
public static ApacheClientRetryPolicy 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 nullpublic org.apache.http.client.HttpRequestRetryHandler getHandler()
Copyright © 2024. All rights reserved.