public class BoundedHttpAsyncClient
extends org.apache.http.impl.nio.client.CloseableHttpAsyncClient
| Constructor and Description |
|---|
BoundedHttpAsyncClient(org.apache.http.impl.nio.client.CloseableHttpAsyncClient delegate,
int maxEntitySize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> Future<T> |
execute(org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer,
org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<T> callback) |
Future<org.apache.http.HttpResponse> |
execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback) |
boolean |
isRunning() |
void |
start() |
public BoundedHttpAsyncClient(org.apache.http.impl.nio.client.CloseableHttpAsyncClient delegate,
int maxEntitySize)
public boolean isRunning()
isRunning in class org.apache.http.impl.nio.client.CloseableHttpAsyncClientpublic void start()
start in class org.apache.http.impl.nio.client.CloseableHttpAsyncClientpublic <T> Future<T> execute(org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer, org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer, org.apache.http.protocol.HttpContext context, org.apache.http.concurrent.FutureCallback<T> callback)
public Future<org.apache.http.HttpResponse> execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)
execute in interface org.apache.http.nio.client.HttpAsyncClientexecute in class org.apache.http.impl.nio.client.CloseableHttpAsyncClientpublic void close()
throws IOException
IOExceptionCopyright © 2012–2018 Atlassian. All rights reserved.