public abstract class BaseEc2MetadataClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Duration |
DEFAULT_TOKEN_TTL |
protected URI |
endpoint |
protected static AttributeMap |
IMDS_HTTP_DEFAULTS |
protected RequestMarshaller |
requestMarshaller |
protected Ec2MetadataRetryPolicy |
retryPolicy |
protected Duration |
tokenTtl |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseEc2MetadataClient(DefaultEc2MetadataAsyncClient.Ec2MetadataAsyncBuilder builder) |
protected |
BaseEc2MetadataClient(DefaultEc2MetadataClient.Ec2MetadataBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
shouldRetry(RetryPolicyContext retryPolicyContext,
Throwable error) |
protected static String |
uncheckedInputStreamToUtf8(AbortableInputStream inputStream) |
protected static final Duration DEFAULT_TOKEN_TTL
protected static final AttributeMap IMDS_HTTP_DEFAULTS
protected final Ec2MetadataRetryPolicy retryPolicy
protected final URI endpoint
protected final RequestMarshaller requestMarshaller
protected final Duration tokenTtl
protected BaseEc2MetadataClient(DefaultEc2MetadataClient.Ec2MetadataBuilder builder)
protected BaseEc2MetadataClient(DefaultEc2MetadataAsyncClient.Ec2MetadataAsyncBuilder builder)
protected static String uncheckedInputStreamToUtf8(AbortableInputStream inputStream)
protected boolean shouldRetry(RetryPolicyContext retryPolicyContext, Throwable error)
Copyright © 2023. All rights reserved.