Class NettyNioAsyncHttpClient
- java.lang.Object
-
- software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient
-
- All Implemented Interfaces:
AutoCloseable,SdkAsyncHttpClient,SdkAutoCloseable
public final class NettyNioAsyncHttpClient extends Object implements SdkAsyncHttpClient
An implementation ofSdkAsyncHttpClientthat uses a Netty non-blocking HTTP client to communicate with the service.This can be created via
builder()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNettyNioAsyncHttpClient.BuilderBuilder that allows configuration of the Netty NIO HTTP implementation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NettyNioAsyncHttpClient.Builderbuilder()StringclientName()voidclose()static SdkAsyncHttpClientcreate()Create aNettyNioAsyncHttpClientwith the default propertiesCompletableFuture<Void>execute(AsyncExecuteRequest request)
-
-
-
Method Detail
-
execute
public CompletableFuture<Void> execute(AsyncExecuteRequest request)
- Specified by:
executein interfaceSdkAsyncHttpClient
-
builder
public static NettyNioAsyncHttpClient.Builder builder()
-
create
public static SdkAsyncHttpClient create()
Create aNettyNioAsyncHttpClientwith the default properties- Returns:
- an
NettyNioAsyncHttpClient
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable
-
clientName
public String clientName()
- Specified by:
clientNamein interfaceSdkAsyncHttpClient
-
-