public final class NettyNioAsyncHttpClient extends Object implements SdkAsyncHttpClient
SdkAsyncHttpClient that uses a Netty non-blocking HTTP client to communicate with the service.
 This can be created via builder()
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
NettyNioAsyncHttpClient.Builder
Builder that allows configuration of the Netty NIO HTTP implementation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static NettyNioAsyncHttpClient.Builder | 
builder()  | 
void | 
close() | 
<T> Optional<T> | 
getConfigurationValue(SdkHttpConfigurationOption<T> key)
Retrieve the current value of the configuration option, if present. 
 | 
AbortableRunnable | 
prepareRequest(SdkHttpRequest sdkRequest,
              SdkRequestContext sdkRequestContext,
              SdkHttpRequestProvider requestProvider,
              SdkHttpResponseHandler handler)
Create an  
AbortableRunnable that can be used to execute the HTTP request. | 
public static NettyNioAsyncHttpClient.Builder builder()
public AbortableRunnable prepareRequest(SdkHttpRequest sdkRequest, SdkRequestContext sdkRequestContext, SdkHttpRequestProvider requestProvider, SdkHttpResponseHandler handler)
SdkAsyncHttpClientAbortableRunnable that can be used to execute the HTTP request.prepareRequest in interface SdkAsyncHttpClientsdkRequest - HTTP request (without content).sdkRequestContext - Request context containing additional dependencies.requestProvider - Representation of an HTTP requestProvider.handler - The handler that will be called when data is received.public <T> Optional<T> getConfigurationValue(SdkHttpConfigurationOption<T> key)
ConfigurationProvidergetConfigurationValue in interface ConfigurationProviderT - 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()
SdkAutoCloseableclose in interface AutoCloseableclose in interface SdkAutoCloseableCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.