public final class AsyncExecutor extends Object
| Modifier and Type | Method and Description |
|---|---|
static <ResponseType,ExceptionType extends CoreApiException> |
makeHttpCallAsync(RequestSupplier requestSupplier,
RequestExecutor requestExecutor,
AsyncResponseHandler<ResponseType,ExceptionType> responseHandler)
Make an asynchronous HTTP end point call.
|
public static <ResponseType,ExceptionType extends CoreApiException> CompletableFuture<ResponseType> makeHttpCallAsync(RequestSupplier requestSupplier, RequestExecutor requestExecutor, AsyncResponseHandler<ResponseType,ExceptionType> responseHandler)
ResponseType - The type of the object for response.ExceptionType - Server error.requestSupplier - An object of RequestSupplier to supply an instance of HttpRequest.requestExecutor - An object of RequestExecutor to execute the given request.responseHandler - An object of ResponseHandler to handle the endpoint response.Copyright © 2023. All rights reserved.