Class Constants
- java.lang.Object
-
- software.amazon.cloudwatchlogs.emf.Constants
-
public class Constants extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_AGENT_PORTstatic intDEFAULT_ASYNC_BUFFER_SIZEThe max number of messages to hold in memory in case of transient socket errors.static intMAX_ATTEMPTS_PER_MESSAGEHow many times to retry an individual message.static intMAX_BACKOFF_JITTERMaximum amount of random jitter to apply to retriesstatic intMAX_BACKOFF_MILLISMax backoff millis when a transient socket failure is encountered.static intMAX_DATAPOINTS_PER_METRICstatic shortMAX_DIMENSION_NAME_LENGTHstatic intMAX_DIMENSION_SET_SIZEstatic shortMAX_DIMENSION_VALUE_LENGTHstatic shortMAX_METRIC_NAME_LENGTHstatic intMAX_METRICS_PER_EVENTstatic shortMAX_NAMESPACE_LENGTHstatic longMAX_TIMESTAMP_FUTURE_AGE_SECONDSstatic longMAX_TIMESTAMP_PAST_AGE_SECONDSstatic intMIN_BACKOFF_MILLISStarting backoff millis when a transient socket failure is encountered.static java.lang.StringUNKNOWNstatic java.lang.StringVALID_NAMESPACE_REGEX
-
Constructor Summary
Constructors Constructor Description Constants()
-
-
-
Field Detail
-
MAX_DIMENSION_SET_SIZE
public static final int MAX_DIMENSION_SET_SIZE
- See Also:
- Constant Field Values
-
MAX_DIMENSION_NAME_LENGTH
public static final short MAX_DIMENSION_NAME_LENGTH
- See Also:
- Constant Field Values
-
MAX_DIMENSION_VALUE_LENGTH
public static final short MAX_DIMENSION_VALUE_LENGTH
- See Also:
- Constant Field Values
-
MAX_METRIC_NAME_LENGTH
public static final short MAX_METRIC_NAME_LENGTH
- See Also:
- Constant Field Values
-
MAX_NAMESPACE_LENGTH
public static final short MAX_NAMESPACE_LENGTH
- See Also:
- Constant Field Values
-
VALID_NAMESPACE_REGEX
public static final java.lang.String VALID_NAMESPACE_REGEX
- See Also:
- Constant Field Values
-
MAX_TIMESTAMP_PAST_AGE_SECONDS
public static final long MAX_TIMESTAMP_PAST_AGE_SECONDS
-
MAX_TIMESTAMP_FUTURE_AGE_SECONDS
public static final long MAX_TIMESTAMP_FUTURE_AGE_SECONDS
-
DEFAULT_AGENT_PORT
public static final int DEFAULT_AGENT_PORT
- See Also:
- Constant Field Values
-
UNKNOWN
public static final java.lang.String UNKNOWN
- See Also:
- Constant Field Values
-
MAX_METRICS_PER_EVENT
public static final int MAX_METRICS_PER_EVENT
- See Also:
- Constant Field Values
-
MAX_DATAPOINTS_PER_METRIC
public static final int MAX_DATAPOINTS_PER_METRIC
- See Also:
- Constant Field Values
-
DEFAULT_ASYNC_BUFFER_SIZE
public static final int DEFAULT_ASYNC_BUFFER_SIZE
The max number of messages to hold in memory in case of transient socket errors. The maximum message size is 256 KB meaning the maximum size of this buffer would be 25.6 MB- See Also:
- Constant Field Values
-
MAX_ATTEMPTS_PER_MESSAGE
public static final int MAX_ATTEMPTS_PER_MESSAGE
How many times to retry an individual message. We eventually give up vs. retrying indefinitely in case there is something inherent to the message that is causing the failures. Giving up results in data loss, but also helps us reduce the risk of a poison pill blocking all process telemetry.- See Also:
- Constant Field Values
-
MIN_BACKOFF_MILLIS
public static final int MIN_BACKOFF_MILLIS
Starting backoff millis when a transient socket failure is encountered.- See Also:
- Constant Field Values
-
MAX_BACKOFF_MILLIS
public static final int MAX_BACKOFF_MILLIS
Max backoff millis when a transient socket failure is encountered.- See Also:
- Constant Field Values
-
MAX_BACKOFF_JITTER
public static final int MAX_BACKOFF_JITTER
Maximum amount of random jitter to apply to retries- See Also:
- Constant Field Values
-
-