com.atlassian.httpclient.apache.httpcomponents
Class ApacheAsyncHttpClient<C>

java.lang.Object
  extended by com.atlassian.httpclient.base.AbstractHttpClient
      extended by com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient<C>
All Implemented Interfaces:
HttpClient, org.springframework.beans.factory.DisposableBean

public final class ApacheAsyncHttpClient<C>
extends AbstractHttpClient
implements HttpClient, org.springframework.beans.factory.DisposableBean


Constructor Summary
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(com.google.common.base.Supplier<String> applicationName, com.google.common.base.Function<Object,Void> eventConsumer, com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager, HttpClientOptions options)
           
 
Method Summary
 void destroy()
           
 ResponsePromise execute(Request request)
           
 void flushCacheByUriPattern(Pattern urlPattern)
           
 
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 Detail

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(com.google.common.base.Supplier<String> applicationName,
                             com.google.common.base.Function<Object,Void> eventConsumer,
                             com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager,
                             HttpClientOptions options)
Method Detail

execute

public final ResponsePromise execute(Request request)
Specified by:
execute in interface 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 HttpClient


Copyright © 2012–2015 Atlassian. All rights reserved.