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(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) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
ResponsePromise |
execute(Request request) |
void |
flushCacheByUriPattern(Pattern urlPattern)
Flush the cache entries by matching the URI using a regular expression
|
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 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)
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)
HttpClientflushCacheByUriPattern in interface HttpClienturlPattern - The regular expression to matchCopyright © 2012–2018 Atlassian. All rights reserved.