Class CannedResponseAsyncHttpClient
java.lang.Object
software.amazon.awssdk.core.warmup.http.CannedResponseAsyncHttpClient
- All Implemented Interfaces:
AutoCloseable,SdkAsyncHttpClient,SdkAutoCloseable
@SdkProtectedApi
@Immutable
@ThreadSafe
public final class CannedResponseAsyncHttpClient
extends Object
implements SdkAsyncHttpClient
An
SdkAsyncHttpClient that completes every request with caller-supplied response bytes without performing any
network I/O. It is the async counterpart of CannedResponseHttpClient, used to warm the async request pipeline for a
CRaC checkpoint.
Each execute(AsyncExecuteRequest) signals the configured status code, publishes the response bytes through a
SimplePublisher, and returns an already-completed future.
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
builder
-
execute
- Specified by:
executein interfaceSdkAsyncHttpClient
-
clientName
- Specified by:
clientNamein interfaceSdkAsyncHttpClient
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable
-