Package software.amazon.awssdk.http.crt
Class AwsCrtHttpClient
- java.lang.Object
-
- software.amazon.awssdk.http.crt.AwsCrtHttpClient
-
- All Implemented Interfaces:
AutoCloseable,SdkHttpClient,SdkAutoCloseable
public final class AwsCrtHttpClient extends Object implements SdkHttpClient
An implementation ofSdkHttpClientthat uses the AWS Common Runtime (CRT) Http Client to communicate with Http Web Services. This client has a synchronous interface, but uses non-blocking IO.This can be created via
builder()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsCrtHttpClient.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 AwsCrtHttpClient.Builderbuilder()StringclientName()voidclose()static SdkHttpClientcreate()Create aAwsCrtHttpClientclient with the default configurationExecutableHttpRequestprepareRequest(HttpExecuteRequest request)-
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 AwsCrtHttpClient.Builder builder()
-
create
public static SdkHttpClient create()
Create aAwsCrtHttpClientclient with the default configuration- Returns:
- an
SdkHttpClient
-
clientName
public String clientName()
- Specified by:
clientNamein interfaceSdkHttpClient
-
prepareRequest
public ExecutableHttpRequest prepareRequest(HttpExecuteRequest request)
- Specified by:
prepareRequestin interfaceSdkHttpClient
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable
-
-