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 -
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<ru.tinkoff.kora.http.client.common.response.HttpClientResponse>execute(ru.tinkoff.kora.http.client.common.request.HttpClientRequest request) voidinit()voidrelease()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
executein interfaceru.tinkoff.kora.http.client.common.HttpClient
-
init
public void init()- Specified by:
initin interfaceru.tinkoff.kora.application.graph.Lifecycle
-
release
- Specified by:
releasein interfaceru.tinkoff.kora.application.graph.Lifecycle- Throws:
IOException
-