Class HttpClientDependencies
- java.lang.Object
-
- software.amazon.awssdk.core.internal.http.HttpClientDependencies
-
- All Implemented Interfaces:
AutoCloseable,software.amazon.awssdk.utils.SdkAutoCloseable
public final class HttpClientDependencies extends Object implements software.amazon.awssdk.utils.SdkAutoCloseable
Client scoped dependencies ofAmazonSyncHttpClientandAmazonAsyncHttpClient. May be injected into constructors ofRequestPipelineimplementations byRequestPipelineBuilder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpClientDependencies.BuilderBuilder forHttpClientDependencies.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpClientDependencies.Builderbuilder()SdkClientConfigurationclientConfiguration()ClockSkewAdjusterclockSkewAdjuster()voidclose()inttimeOffset()HttpClientDependencies.BuildertoBuilder()voidupdateTimeOffset(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:
closein interfaceAutoCloseable- Specified by:
closein interfacesoftware.amazon.awssdk.utils.SdkAutoCloseable
-
-