public static class AsyncScrapingHttpClient2.SharedAsyncHttpClient extends SharedHttpClientBase implements org.asynchttpclient.AsyncHttpClient
SHUTDOWN_USE_COUNT
Constructor and Description |
---|
SharedAsyncHttpClient(CleanableReference<org.asynchttpclient.AsyncHttpClient> wrappedClient) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeUnderlyingResources()
Method called to close any resources when no more references are held to this object.
|
org.asynchttpclient.ListenableFuture<org.asynchttpclient.Response> |
executeRequest(org.asynchttpclient.Request request) |
<T> org.asynchttpclient.ListenableFuture<T> |
executeRequest(org.asynchttpclient.Request request,
org.asynchttpclient.AsyncHandler<T> asyncHandler) |
org.asynchttpclient.ListenableFuture<org.asynchttpclient.Response> |
executeRequest(org.asynchttpclient.RequestBuilder requestBuilder) |
<T> org.asynchttpclient.ListenableFuture<T> |
executeRequest(org.asynchttpclient.RequestBuilder requestBuilder,
org.asynchttpclient.AsyncHandler<T> asyncHandler) |
void |
flushChannelPoolPartitions(java.util.function.Predicate<java.lang.Object> predicate) |
org.asynchttpclient.ClientStats |
getClientStats() |
org.asynchttpclient.AsyncHttpClientConfig |
getConfig() |
org.asynchttpclient.BoundRequestBuilder |
prepare(java.lang.String s,
java.lang.String s1) |
org.asynchttpclient.BoundRequestBuilder |
prepareConnect(java.lang.String s) |
org.asynchttpclient.BoundRequestBuilder |
prepareDelete(java.lang.String s) |
org.asynchttpclient.BoundRequestBuilder |
prepareGet(java.lang.String s) |
org.asynchttpclient.BoundRequestBuilder |
prepareHead(java.lang.String s) |
org.asynchttpclient.BoundRequestBuilder |
prepareOptions(java.lang.String s) |
org.asynchttpclient.BoundRequestBuilder |
preparePatch(java.lang.String s) |
org.asynchttpclient.BoundRequestBuilder |
preparePost(java.lang.String s) |
org.asynchttpclient.BoundRequestBuilder |
preparePut(java.lang.String s) |
org.asynchttpclient.BoundRequestBuilder |
prepareRequest(org.asynchttpclient.Request request) |
org.asynchttpclient.BoundRequestBuilder |
prepareRequest(org.asynchttpclient.RequestBuilder requestBuilder) |
org.asynchttpclient.BoundRequestBuilder |
prepareTrace(java.lang.String s) |
void |
registerRemovalOnClose(HttpClientKey key) |
org.asynchttpclient.AsyncHttpClient |
setSignatureCalculator(org.asynchttpclient.SignatureCalculator signatureCalculator) |
addUse, close, getCurrentUsers, getOpenCount, isClosed, registerUser, removeUser, toString
public SharedAsyncHttpClient(@NotNull CleanableReference<org.asynchttpclient.AsyncHttpClient> wrappedClient)
public void registerRemovalOnClose(@NotNull HttpClientKey key)
public org.asynchttpclient.AsyncHttpClient setSignatureCalculator(org.asynchttpclient.SignatureCalculator signatureCalculator)
setSignatureCalculator
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder prepareGet(java.lang.String s)
prepareGet
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder prepareConnect(java.lang.String s)
prepareConnect
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder prepareOptions(java.lang.String s)
prepareOptions
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder prepareHead(java.lang.String s)
prepareHead
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder preparePost(java.lang.String s)
preparePost
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder preparePut(java.lang.String s)
preparePut
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder prepareDelete(java.lang.String s)
prepareDelete
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder preparePatch(java.lang.String s)
preparePatch
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder prepareTrace(java.lang.String s)
prepareTrace
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder prepareRequest(org.asynchttpclient.Request request)
prepareRequest
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder prepareRequest(org.asynchttpclient.RequestBuilder requestBuilder)
prepareRequest
in interface org.asynchttpclient.AsyncHttpClient
public <T> org.asynchttpclient.ListenableFuture<T> executeRequest(org.asynchttpclient.Request request, org.asynchttpclient.AsyncHandler<T> asyncHandler)
executeRequest
in interface org.asynchttpclient.AsyncHttpClient
public <T> org.asynchttpclient.ListenableFuture<T> executeRequest(org.asynchttpclient.RequestBuilder requestBuilder, org.asynchttpclient.AsyncHandler<T> asyncHandler)
executeRequest
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.ListenableFuture<org.asynchttpclient.Response> executeRequest(org.asynchttpclient.Request request)
executeRequest
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.ListenableFuture<org.asynchttpclient.Response> executeRequest(org.asynchttpclient.RequestBuilder requestBuilder)
executeRequest
in interface org.asynchttpclient.AsyncHttpClient
public void flushChannelPoolPartitions(java.util.function.Predicate<java.lang.Object> predicate)
flushChannelPoolPartitions
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.BoundRequestBuilder prepare(java.lang.String s, java.lang.String s1)
prepare
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.ClientStats getClientStats()
getClientStats
in interface org.asynchttpclient.AsyncHttpClient
public org.asynchttpclient.AsyncHttpClientConfig getConfig()
getConfig
in interface org.asynchttpclient.AsyncHttpClient
protected void closeUnderlyingResources() throws java.io.IOException
SharedHttpClientBase
closeUnderlyingResources
in class SharedHttpClientBase
java.io.IOException
- On error closing the resources