@NotThreadSafe public class ExecutionContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExecutionContext.Builder |
Constructor and Description |
---|
ExecutionContext()
For testing purposes.
|
ExecutionContext(boolean isMetricEnabled)
For testing purposes.
|
ExecutionContext(List<RequestHandler2> requestHandler2s,
boolean isMetricEnabled,
AmazonWebServiceClient awsClient)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ExecutionContext.Builder |
builder() |
AuthErrorRetryStrategy |
getAuthErrorRetryStrategy()
Returns the retry strategy for auth errors.
|
AWSRequestMetrics |
getAwsRequestMetrics() |
ClientExecutionAbortTrackerTask |
getClientExecutionTrackerTask() |
AWSCredentialsProvider |
getCredentialsProvider()
Returns the credentials provider used for fetching the credentials.
|
List<RequestHandler2> |
getRequestHandler2s() |
Signer |
getSigner(SignerProviderContext context)
|
Signer |
getSignerByURI(URI uri)
Deprecated.
|
void |
markRetryCapacityConsumed()
Marks that a retry during this request lifecycle has consumed retry capacity.
|
boolean |
retryCapacityConsumed()
Returns whether retry capacity was consumed during this request lifecycle.
|
void |
setAuthErrorRetryStrategy(AuthErrorRetryStrategy authErrorRetryStrategy)
Sets the optional auth error retry strategy for this request execution.
|
void |
setClientExecutionTrackerTask(ClientExecutionAbortTrackerTask clientExecutionTrackerTask) |
void |
setCredentialsProvider(AWSCredentialsProvider credentialsProvider)
Sets the credentials provider used for fetching the credentials.
|
void |
setSigner(Signer signer)
Deprecated.
|
public ExecutionContext(boolean isMetricEnabled)
public ExecutionContext()
@Deprecated public ExecutionContext(List<RequestHandler2> requestHandler2s, boolean isMetricEnabled, AmazonWebServiceClient awsClient)
public List<RequestHandler2> getRequestHandler2s()
public AWSRequestMetrics getAwsRequestMetrics()
@Deprecated public void setSigner(Signer signer)
public boolean retryCapacityConsumed()
public void markRetryCapacityConsumed()
public Signer getSigner(SignerProviderContext context)
@Deprecated public Signer getSignerByURI(URI uri)
public void setCredentialsProvider(AWSCredentialsProvider credentialsProvider)
credentialsProvider
- the credentials provider to fetch AWSCredentials
public AWSCredentialsProvider getCredentialsProvider()
AWSCredentials
public AuthErrorRetryStrategy getAuthErrorRetryStrategy()
Note that this will be checked BEFORE the HTTP client consults the user-specified RetryPolicy. i.e. if the configured AuthErrorRetryStrategy says the request should be retried, the retry will be performed internally and the effect is transparent to the user's RetryPolicy.
public void setAuthErrorRetryStrategy(AuthErrorRetryStrategy authErrorRetryStrategy)
getAuthErrorRetryStrategy()
public ClientExecutionAbortTrackerTask getClientExecutionTrackerTask()
public void setClientExecutionTrackerTask(ClientExecutionAbortTrackerTask clientExecutionTrackerTask)
public static ExecutionContext.Builder builder()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.