public class SystemPropertiesConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_PROP_PREFIX
Prefix for IT-specific system properties
|
static String |
HTTP_DELAY_PROP
System property for
getHttpDelay()
Prefixed by CONFIG_PROP_PREFIX |
static String |
HTTP_LOG_RETRIES_PROP
System property for
isHttpLogRetries()
Prefixed by CONFIG_PROP_PREFIX |
static String |
HTTP_RETRIES_DELAY_PROP
System property for
getHttpRetriesDelay()
Prefixed by CONFIG_PROP_PREFIX |
static String |
HTTP_RETRIES_ERROR_CODES_PROP
System property for
getHttpRetriesErrorCodes()
Prefixed by CONFIG_PROP_PREFIX |
static String |
HTTP_RETRIES_PROP
System property for
getHttpRetries()
Prefixed by CONFIG_PROP_PREFIX |
| Constructor and Description |
|---|
SystemPropertiesConfig() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getHttpDelay()
Custom delay in milliseconds before an HTTP request goes through.
|
static int |
getHttpRetries()
Number of http call retries in case of a 5XX response code
|
static int |
getHttpRetriesDelay()
The delay in milliseconds between http retries
|
static Collection<Integer> |
getHttpRetriesErrorCodes()
Comma-separated list of http response codes for which to retry the request
If empty, all 5XX error codes will be retried
|
static String |
getPrefixedPropertyName(String prop) |
static boolean |
isHttpLogRetries()
Whether to log or not http request retries
|
public static final String CONFIG_PROP_PREFIX
public static final String HTTP_DELAY_PROP
getHttpDelay()
Prefixed by CONFIG_PROP_PREFIXpublic static final String HTTP_RETRIES_PROP
getHttpRetries()
Prefixed by CONFIG_PROP_PREFIXpublic static final String HTTP_RETRIES_DELAY_PROP
getHttpRetriesDelay()
Prefixed by CONFIG_PROP_PREFIXpublic static final String HTTP_LOG_RETRIES_PROP
isHttpLogRetries()
Prefixed by CONFIG_PROP_PREFIXpublic static final String HTTP_RETRIES_ERROR_CODES_PROP
getHttpRetriesErrorCodes()
Prefixed by CONFIG_PROP_PREFIXpublic static long getHttpDelay()
DelayRequestInterceptorpublic static int getHttpRetries()
public static int getHttpRetriesDelay()
public static boolean isHttpLogRetries()
public static Collection<Integer> getHttpRetriesErrorCodes()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.