Interface AsyncClientHttpEngine

    • Method Detail

      • submit

        <T> Future<T> submit​(ClientInvocation request,
                             boolean buffered,
                             jakarta.ws.rs.client.InvocationCallback<T> callback,
                             AsyncClientHttpEngine.ResultExtractor<T> extractor)
        Submits an asynchronous request.
        Type Parameters:
        T - type
        Parameters:
        request - Request
        buffered - buffer the response?
        callback - Optional callback receiving the result, which is run inside the io-thread. may be null.
        extractor - ResultExtractor for extracting a result out of a ClientResponse. Is run inside the io-thread
        Returns:
        Future with the result or Exception
      • submit

        default <T> CompletableFuture<T> submit​(ClientInvocation request,
                                                boolean buffered,
                                                AsyncClientHttpEngine.ResultExtractor<T> extractor)
        Submits an asynchronous request.
        Type Parameters:
        T - type
        Parameters:
        request - Request
        buffered - buffer the response?
        extractor - ResultExtractor for extracting a result out of a ClientResponse. Is run inside the io-thread
        Returns:
        CompletableFuture with the result or Exception
      • submit

        <T> CompletableFuture<T> submit​(ClientInvocation request,
                                        boolean buffered,
                                        AsyncClientHttpEngine.ResultExtractor<T> extractor,
                                        ExecutorService executorService)
        Submits an asynchronous request.
        Type Parameters:
        T - type
        Parameters:
        request - Request
        buffered - buffer the response?
        extractor - ResultExtractor for extracting a result out of a ClientResponse. Is run inside the io-thread
        executorService - the executor to use for asynchronous execution
        Returns:
        CompletableFuture with the result or Exception