Class ApacheAsyncHttpClient<C>
java.lang.Object
com.atlassian.httpclient.base.AbstractHttpClient
fr.enedis.chutney.jira.infra.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient<C>
- All Implemented Interfaces:
com.atlassian.httpclient.api.HttpClient,org.springframework.beans.factory.DisposableBean
public final class ApacheAsyncHttpClient<C>
extends com.atlassian.httpclient.base.AbstractHttpClient
implements com.atlassian.httpclient.api.HttpClient, org.springframework.beans.factory.DisposableBean
Changes : - Use local HttpClientOptions class
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionApacheAsyncHttpClient(com.atlassian.event.api.EventPublisher eventConsumer, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager) ApacheAsyncHttpClient(com.atlassian.event.api.EventPublisher eventConsumer, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager, HttpClientOptions options) ApacheAsyncHttpClient(String applicationName) ApacheAsyncHttpClient(String applicationName, HttpClientOptions options) ApacheAsyncHttpClient(Supplier<String> applicationName, Function<Object, Void> eventConsumer, com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager, HttpClientOptions options) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()final com.atlassian.httpclient.api.ResponsePromiseexecute(com.atlassian.httpclient.api.Request request) voidflushCacheByUriPattern(Pattern urlPattern) Methods inherited from class com.atlassian.httpclient.base.AbstractHttpClient
newRequest, newRequest, newRequest, newRequest, newRequest, transformationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.httpclient.api.HttpClient
newRequest, newRequest, newRequest, newRequest, newRequest, transformation
-
Constructor Details
-
ApacheAsyncHttpClient
public ApacheAsyncHttpClient(com.atlassian.event.api.EventPublisher eventConsumer, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager) -
ApacheAsyncHttpClient
public ApacheAsyncHttpClient(com.atlassian.event.api.EventPublisher eventConsumer, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager, HttpClientOptions options) -
ApacheAsyncHttpClient
-
ApacheAsyncHttpClient
-
ApacheAsyncHttpClient
-
-
Method Details
-
execute
public final com.atlassian.httpclient.api.ResponsePromise execute(com.atlassian.httpclient.api.Request request) - Specified by:
executein interfacecom.atlassian.httpclient.api.HttpClient
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
flushCacheByUriPattern
- Specified by:
flushCacheByUriPatternin interfacecom.atlassian.httpclient.api.HttpClient
-