AutoCloseable
public class HttpClientDependencies extends Object implements AutoCloseable
AmazonHttpClient
. May be injected into constructors of RequestPipeline
implementations by
RequestPipelineBuilder
.Modifier and Type | Class | Description |
---|---|---|
static class |
HttpClientDependencies.Builder |
Builder for
HttpClientDependencies . |
Modifier and Type | Method | Description |
---|---|---|
static HttpClientDependencies.Builder |
builder() |
Create a
HttpClientDependencies.Builder , used to create a RequestExecutionContext . |
boolean |
calculateCrc32FromCompressedData() |
|
ClientExecutionTimer |
clientExecutionTimer() |
|
void |
close() |
|
LegacyClientConfiguration |
config() |
|
ScheduledExecutorService |
executorService() |
|
CapacityManager |
retryCapacity() |
|
RetryPolicy |
retryPolicy() |
|
SdkAsyncHttpClient |
sdkAsyncHttpClient() |
|
SdkHttpClient |
sdkHttpClient() |
|
int |
timeOffset() |
|
void |
updateTimeOffset(int timeOffset) |
Updates the time offset of the client as well as the global time offset.
|
public static HttpClientDependencies.Builder builder()
HttpClientDependencies.Builder
, used to create a RequestExecutionContext
.public LegacyClientConfiguration config()
LegacyClientConfiguration
object provided by generated client.public RetryPolicy retryPolicy()
RetryPolicy
configured for the client.public CapacityManager retryCapacity()
public SdkHttpClient sdkHttpClient()
public SdkAsyncHttpClient sdkAsyncHttpClient()
public ClientExecutionTimer clientExecutionTimer()
public ScheduledExecutorService executorService()
public boolean calculateCrc32FromCompressedData()
public int timeOffset()
public void updateTimeOffset(int timeOffset)
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.