|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ning.http.client.AsyncHttpClientConfig
public class AsyncHttpClientConfig
Configuration class to use with a AsyncHttpClient
. System property can be also used to configure this
object default behavior by doing:
Nested Class Summary | |
---|---|
static class |
AsyncHttpClientConfig.Builder
Builder for an AsyncHttpClient |
Method Summary | |
---|---|
ExecutorService |
executorService()
Return the ExecutorService an AsyncHttpClient use for handling
asynchronous response. |
int |
getConnectionTimeoutInMs()
Return the maximum time in millisecond an AsyncHttpClient can wait when connecting to a remote host |
int |
getIdleConnectionTimeoutInMs()
Return the maximum time in millisecond an AsyncHttpClient can stay idle. |
boolean |
getKeepAlive()
Is HTTP keep-alive enabled. |
int |
getMaxConnectionPerHost()
Return the maximum number of connections per hosts an AsyncHttpClient can handle. |
int |
getMaxRedirects()
Get the maximum number of HTTP redirect |
int |
getMaxTotalConnections()
Return the maximum number of connections an AsyncHttpClient can handle. |
ProxyServer |
getProxyServer()
An instance of ProxyServer used by an AsyncHttpClient |
int |
getRequestTimeoutInMs()
Return the maximum time in millisecond an AsyncHttpClient wait for a response |
SSLEngine |
getSSLEngine()
Return an instance of SSLEngine used for SSL connection. |
String |
getUserAgent()
Return the USER_AGENT header value |
boolean |
isCompressionEnabled()
Is HTTP compression enabled. |
boolean |
isRedirectEnabled()
Is HTTP redirect enabled |
ScheduledExecutorService |
reaper()
A ScheduledExecutorService used to expire idle connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public ScheduledExecutorService reaper()
ScheduledExecutorService
used to expire idle connections.
ScheduledExecutorService
public int getMaxTotalConnections()
AsyncHttpClient
can handle.
AsyncHttpClient
can handle.public int getMaxConnectionPerHost()
AsyncHttpClient
can handle.
AsyncHttpClient
can handle.public int getConnectionTimeoutInMs()
AsyncHttpClient
can wait when connecting to a remote host
AsyncHttpClient
can wait when connecting to a remote hostpublic int getIdleConnectionTimeoutInMs()
AsyncHttpClient
can stay idle.
AsyncHttpClient
can stay idle.public int getRequestTimeoutInMs()
AsyncHttpClient
wait for a response
AsyncHttpClient
wait for a responsepublic boolean isRedirectEnabled()
public int getMaxRedirects()
public boolean getKeepAlive()
public String getUserAgent()
public boolean isCompressionEnabled()
public ExecutorService executorService()
ExecutorService
an AsyncHttpClient
use for handling
asynchronous response.
ExecutorService
an AsyncHttpClient
use for handling
asynchronous response.public ProxyServer getProxyServer()
ProxyServer
used by an AsyncHttpClient
ProxyServer
public SSLEngine getSSLEngine()
SSLEngine
used for SSL connection.
SSLEngine
used for SSL connection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |