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.