public final class ApacheAsyncHttpClient<C> extends AbstractHttpClient implements HttpClient, org.springframework.beans.factory.DisposableBean
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
ResponsePromise |
execute(Request request) |
void |
flushCacheByUriPattern(Pattern urlPattern) |
newRequest, newRequest, newRequest, newRequest, newRequest, transformationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewRequest, newRequest, newRequest, newRequest, newRequest, transformationpublic ApacheAsyncHttpClient(com.atlassian.event.api.EventPublisher eventConsumer,
com.atlassian.sal.api.ApplicationProperties applicationProperties,
com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager)
public ApacheAsyncHttpClient(com.atlassian.event.api.EventPublisher eventConsumer,
com.atlassian.sal.api.ApplicationProperties applicationProperties,
com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager,
HttpClientOptions options)
public ApacheAsyncHttpClient(String applicationName)
public ApacheAsyncHttpClient(String applicationName, HttpClientOptions options)
public final ResponsePromise execute(Request request)
execute in interface HttpClientpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void flushCacheByUriPattern(Pattern urlPattern)
flushCacheByUriPattern in interface HttpClientCopyright © 2012–2018 Atlassian. All rights reserved.