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(java.lang.String applicationName)
|
ApacheAsyncHttpClient(java.lang.String applicationName,
HttpClientOptions options)
|
ApacheAsyncHttpClient(com.google.common.base.Supplier<java.lang.String> applicationName,
com.google.common.base.Function<java.lang.Object,java.lang.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(java.lang.String applicationName)
ApacheAsyncHttpClient
public ApacheAsyncHttpClient(java.lang.String applicationName,
HttpClientOptions options)
ApacheAsyncHttpClient
public ApacheAsyncHttpClient(com.google.common.base.Supplier<java.lang.String> applicationName,
com.google.common.base.Function<java.lang.Object,java.lang.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 java.lang.Exception
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
flushCacheByUriPattern
public void flushCacheByUriPattern(java.util.regex.Pattern urlPattern)
- Specified by:
flushCacheByUriPattern in interface HttpClient
Copyright © 2012-2014 Atlassian. All Rights Reserved.