public interface AmazonInfoConfig
Modifier and Type | Method and Description |
---|---|
int |
getConnectTimeout() |
java.lang.String |
getNamespace() |
int |
getNumRetries() |
int |
getReadTimeout() |
boolean |
shouldFailFastOnFirstLoad()
When creating an AmazonInfo via
AmazonInfo.Builder.autoBuild(String) ,
a fail fast mechanism exist based on the below configuration. |
boolean |
shouldLogAmazonMetadataErrors() |
boolean |
shouldValidateInstanceId()
When AmazonInfo is specified, setting this to false allows progress on building the AmazonInfo even if
the instanceId of the environment is not able to be validated.
|
java.lang.String getNamespace()
boolean shouldLogAmazonMetadataErrors()
int getReadTimeout()
int getConnectTimeout()
int getNumRetries()
boolean shouldFailFastOnFirstLoad()
AmazonInfo.Builder.autoBuild(String)
,
a fail fast mechanism exist based on the below configuration.
If enabled (default to true), the AmazonInfo.Builder.autoBuild(String)
method will exit early after failing to load the value for the first metadata key (instanceId),
after the expected number of retries as defined by getNumRetries()
.boolean shouldValidateInstanceId()