com.atlassian.httpclient.apache.httpcomponents
Class ApacheAsyncHttpClient<C>
java.lang.Object
com.atlassian.httpclient.base.AbstractHttpClient
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.