public static final class SdkDefaultClientBuilder.NonManagedSdkHttpClient extends Object implements SdkHttpClient
SdkHttpClient
to prevent it from being closed. Used when the customer provides
an already built client in which case they are responsible for the lifecycle of it.SdkHttpClient.Builder<T extends SdkHttpClient.Builder<T>>
Modifier and Type | Method and Description |
---|---|
void |
close() |
<T> Optional<T> |
getConfigurationValue(SdkHttpConfigurationOption<T> key)
Retrieve the current value of the configuration option, if present.
|
AbortableCallable<SdkHttpFullResponse> |
prepareRequest(SdkHttpFullRequest request,
SdkRequestContext requestContext)
Create a
AbortableCallable that can be used to execute the HTTP request. |
public AbortableCallable<SdkHttpFullResponse> prepareRequest(SdkHttpFullRequest request, SdkRequestContext requestContext)
SdkHttpClient
AbortableCallable
that can be used to execute the HTTP request.prepareRequest
in interface SdkHttpClient
request
- Representation of an HTTP request.requestContext
- Contains any extra dependencies needed.public <T> Optional<T> getConfigurationValue(SdkHttpConfigurationOption<T> key)
ConfigurationProvider
getConfigurationValue
in interface ConfigurationProvider
T
- Type of configuration value.key
- Key of configuration value to retrieve.Optional
if configuration option is not supported, otherwise a fulfilled Optional
containing the current value.public void close()
SdkAutoCloseable
close
in interface AutoCloseable
close
in interface SdkAutoCloseable
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.