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 ofSdkHttpClient
that 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 interface
AwsCrtHttpClient.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 AwsCrtHttpClient.Builder
builder()
String
clientName()
void
close()
static SdkHttpClient
create()
Create aAwsCrtHttpClient
client with the default configurationExecutableHttpRequest
prepareRequest(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 aAwsCrtHttpClient
client with the default configuration- Returns:
- an
SdkHttpClient
-
clientName
public String clientName()
- Specified by:
clientName
in interfaceSdkHttpClient
-
prepareRequest
public ExecutableHttpRequest prepareRequest(HttpExecuteRequest request)
- Specified by:
prepareRequest
in interfaceSdkHttpClient
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSdkAutoCloseable
-
-