public interface AsyncInvoker
AsyncRestClient.AsyncRequestDefinition.| Modifier and Type | Method and Description |
|---|---|
<T,R> CompletionStage<ResponseEntity<T>> |
invoke(AsyncRestClient.AsyncRequestDefinition requestDefinition,
HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType,
boolean onlySuccessfulStatusCode)
Invoke a request asynchronously using current given
request definition. |
<T,R> CompletionStage<ResponseEntity<T>> invoke(AsyncRestClient.AsyncRequestDefinition requestDefinition, HttpMethod method, RequestEntity<R> requestEntity, ResponseType<T> responseType, boolean onlySuccessfulStatusCode)
request definition.T - Response typeR - Request entity typerequestDefinition - Request definitionmethod - Request methodrequestEntity - Request message payloadresponseType - Expected response payload typeonlySuccessfulStatusCode - true to return only 2xx status code response and throw
an UnsuccessfulResponseException otherwise, false to return any status code responsesCompletionStage to handle the ResponseEntity object as the result of the request
invocationCopyright © 2019 The Holon Platform. All rights reserved.