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:
  • ApacheAsyncHttpClient
  • Constructor Summary

    Constructors
    Constructor
    Description
    ApacheAsyncHttpClient(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 Type
    Method
    Description
    void
     
    final com.atlassian.httpclient.api.ResponsePromise
    execute(com.atlassian.httpclient.api.Request request)
     
    void
     

    Methods inherited from class com.atlassian.httpclient.base.AbstractHttpClient

    newRequest, newRequest, newRequest, newRequest, newRequest, transformation

    Methods inherited from class java.lang.Object

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

    Methods 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

      public ApacheAsyncHttpClient(String applicationName)
    • ApacheAsyncHttpClient

      public ApacheAsyncHttpClient(String applicationName, HttpClientOptions options)
    • ApacheAsyncHttpClient

      public ApacheAsyncHttpClient(Supplier<String> applicationName, Function<Object,Void> eventConsumer, com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager, HttpClientOptions options)
  • Method Details

    • execute

      public final com.atlassian.httpclient.api.ResponsePromise execute(com.atlassian.httpclient.api.Request request)
      Specified by:
      execute in interface com.atlassian.httpclient.api.HttpClient
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • flushCacheByUriPattern

      public void flushCacheByUriPattern(Pattern urlPattern)
      Specified by:
      flushCacheByUriPattern in interface com.atlassian.httpclient.api.HttpClient