Class HttpClientDependencies
- java.lang.Object
-
- software.amazon.awssdk.core.internal.http.HttpClientDependencies
-
- All Implemented Interfaces:
AutoCloseable
,SdkAutoCloseable
public final class HttpClientDependencies extends Object implements SdkAutoCloseable
Client scoped dependencies ofAmazonSyncHttpClient
andAmazonAsyncHttpClient
. May be injected into constructors ofRequestPipeline
implementations byRequestPipelineBuilder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpClientDependencies.Builder
Builder forHttpClientDependencies
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpClientDependencies.Builder
builder()
SdkClientConfiguration
clientConfiguration()
ClockSkewAdjuster
clockSkewAdjuster()
void
close()
int
timeOffset()
HttpClientDependencies.Builder
toBuilder()
void
updateTimeOffset(int timeOffset)
Updates the time offset of the client as well as the global time offset.
-
-
-
Method Detail
-
builder
public static HttpClientDependencies.Builder builder()
-
clientConfiguration
public SdkClientConfiguration clientConfiguration()
-
clockSkewAdjuster
public ClockSkewAdjuster clockSkewAdjuster()
- Returns:
- The adjuster used for adjusting the
timeOffset()
for this client.
-
timeOffset
public int timeOffset()
- Returns:
- Current time offset. This is mutable and should not be cached.
-
updateTimeOffset
public void updateTimeOffset(int timeOffset)
Updates the time offset of the client as well as the global time offset.
-
toBuilder
public HttpClientDependencies.Builder toBuilder()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSdkAutoCloseable
-
-