Package software.amazon.awssdk.http.crt
Class AwsCrtAsyncHttpClient
- java.lang.Object
-
- software.amazon.awssdk.http.crt.AwsCrtAsyncHttpClient
-
- All Implemented Interfaces:
AutoCloseable,SdkAsyncHttpClient,SdkAutoCloseable
public final class AwsCrtAsyncHttpClient extends Object implements SdkAsyncHttpClient
An implementation ofSdkAsyncHttpClientthat uses the AWS Common Runtime (CRT) Http Client to communicate with Http Web Services. This client is asynchronous and uses non-blocking IO.This can be created via
builder()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsCrtAsyncHttpClient.BuilderBuilder that allows configuration of the AWS CRT HTTP implementation.
-
Field Summary
Fields Modifier and Type Field Description protected longreadBufferSize
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsCrtAsyncHttpClient.Builderbuilder()StringclientName()voidclose()static SdkAsyncHttpClientcreate()Create aAwsCrtAsyncHttpClientclient with the default configurationCompletableFuture<Void>execute(AsyncExecuteRequest asyncRequest)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
-
-
-
Method Detail
-
builder
public static AwsCrtAsyncHttpClient.Builder builder()
-
create
public static SdkAsyncHttpClient create()
Create aAwsCrtAsyncHttpClientclient with the default configuration- Returns:
- an
SdkAsyncHttpClient
-
clientName
public String clientName()
- Specified by:
clientNamein interfaceSdkAsyncHttpClient
-
execute
public CompletableFuture<Void> execute(AsyncExecuteRequest asyncRequest)
- Specified by:
executein interfaceSdkAsyncHttpClient
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable
-
-