Class AsyncHttpClient

java.lang.Object
ru.tinkoff.kora.http.client.async.AsyncHttpClient
All Implemented Interfaces:
ru.tinkoff.kora.application.graph.Lifecycle, ru.tinkoff.kora.http.client.common.HttpClient

public class AsyncHttpClient extends Object implements ru.tinkoff.kora.http.client.common.HttpClient, ru.tinkoff.kora.application.graph.Lifecycle
  • Constructor Summary

    Constructors
    Constructor
    Description
    AsyncHttpClient(org.asynchttpclient.AsyncHttpClient client)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    CompletionStage<ru.tinkoff.kora.http.client.common.response.HttpClientResponse>
    execute(ru.tinkoff.kora.http.client.common.request.HttpClientRequest request)
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ru.tinkoff.kora.http.client.common.HttpClient

    with
  • Constructor Details

    • AsyncHttpClient

      public AsyncHttpClient(org.asynchttpclient.AsyncHttpClient client)
  • Method Details

    • execute

      public CompletionStage<ru.tinkoff.kora.http.client.common.response.HttpClientResponse> execute(ru.tinkoff.kora.http.client.common.request.HttpClientRequest request)
      Specified by:
      execute in interface ru.tinkoff.kora.http.client.common.HttpClient
    • init

      public void init()
      Specified by:
      init in interface ru.tinkoff.kora.application.graph.Lifecycle
    • release

      public void release() throws IOException
      Specified by:
      release in interface ru.tinkoff.kora.application.graph.Lifecycle
      Throws:
      IOException