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 ofSdkAsyncHttpClient
that 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 interface
AwsCrtAsyncHttpClient.Builder
Builder that allows configuration of the AWS CRT HTTP implementation.
-
Field Summary
Fields Modifier and Type Field Description protected long
readBufferSize
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsCrtAsyncHttpClient.Builder
builder()
String
clientName()
void
close()
static SdkAsyncHttpClient
create()
Create aAwsCrtAsyncHttpClient
client 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 aAwsCrtAsyncHttpClient
client with the default configuration- Returns:
- an
SdkAsyncHttpClient
-
clientName
public String clientName()
- Specified by:
clientName
in interfaceSdkAsyncHttpClient
-
execute
public CompletableFuture<Void> execute(AsyncExecuteRequest asyncRequest)
- Specified by:
execute
in interfaceSdkAsyncHttpClient
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSdkAutoCloseable
-
-