|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ning.http.client.providers.netty.NettyAsyncHttpProviderConfig
public class NettyAsyncHttpProviderConfig
This class can be used to pass Netty's internal configuration options. See Netty documentation for more information.
Field Summary | |
---|---|
static String |
BOSS_EXECUTOR_SERVICE
Allow configuring the Netty's boss executor service. |
static String |
DISABLE_NESTED_REQUEST
Allow nested request from any AsyncHandler |
static String |
EXECUTE_ASYNC_CONNECT
Execute the connect operation asynchronously. |
static String |
HTTP_CLIENT_CODEC_MAX_CHUNK_SIZE
|
static String |
HTTP_CLIENT_CODEC_MAX_HEADER_SIZE
|
static String |
HTTP_CLIENT_CODEC_MAX_INITIAL_LINE_LENGTH
Allow configuring the Netty's HttpClientCodec. |
static String |
HTTPS_CLIENT_CODEC_MAX_CHUNK_SIZE
|
static String |
HTTPS_CLIENT_CODEC_MAX_HEADER_SIZE
|
static String |
HTTPS_CLIENT_CODEC_MAX_INITIAL_LINE_LENGTH
Allow configuring the Netty's HttpClientCodec. |
static String |
REUSE_ADDRESS
See Socket.setReuseAddress(boolean) |
static String |
SOCKET_CHANNEL_FACTORY
Allow configuring the Netty's socket channel factory. |
static String |
USE_BLOCKING_IO
Use Netty's blocking IO stategy. |
static String |
USE_DIRECT_BYTEBUFFER
Use direct ByteBuffer |
Constructor Summary | |
---|---|
NettyAsyncHttpProviderConfig()
|
Method Summary | ||
---|---|---|
NettyAsyncHttpProviderConfig |
addProperty(String name,
Object value)
Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider |
|
long |
getHandshakeTimeoutInMillis()
|
|
org.jboss.netty.util.Timer |
getNettyTimer()
|
|
Object |
getProperty(String name)
Return the value associated with the property's name |
|
|
getProperty(String name,
Class<T> type,
T defaultValue)
Return the value associated with the property's name |
|
boolean |
isDisableZeroCopy()
|
|
Set<Map.Entry<String,Object>> |
propertiesSet()
Return the curent entry set. |
|
Object |
removeProperty(String name)
Remove the value associated with the property's name |
|
void |
setDisableZeroCopy(boolean disableZeroCopy)
|
|
void |
setHandshakeTimeoutInMillis(long handshakeTimeoutInMillis)
|
|
void |
setNettyTimer(org.jboss.netty.util.Timer nettyTimer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String USE_BLOCKING_IO
public static final String USE_DIRECT_BYTEBUFFER
ByteBuffer
public static final String EXECUTE_ASYNC_CONNECT
public static final String DISABLE_NESTED_REQUEST
AsyncHandler
public static final String BOSS_EXECUTOR_SERVICE
public static final String REUSE_ADDRESS
Socket.setReuseAddress(boolean)
public static final String HTTP_CLIENT_CODEC_MAX_INITIAL_LINE_LENGTH
public static final String HTTP_CLIENT_CODEC_MAX_HEADER_SIZE
public static final String HTTP_CLIENT_CODEC_MAX_CHUNK_SIZE
public static final String HTTPS_CLIENT_CODEC_MAX_INITIAL_LINE_LENGTH
public static final String HTTPS_CLIENT_CODEC_MAX_HEADER_SIZE
public static final String HTTPS_CLIENT_CODEC_MAX_CHUNK_SIZE
public static final String SOCKET_CHANNEL_FACTORY
Constructor Detail |
---|
public NettyAsyncHttpProviderConfig()
Method Detail |
---|
public NettyAsyncHttpProviderConfig addProperty(String name, Object value)
AsyncHttpProvider
addProperty
in interface AsyncHttpProviderConfig<String,Object>
name
- the name of the propertyvalue
- the value of the property
public Object getProperty(String name)
getProperty
in interface AsyncHttpProviderConfig<String,Object>
name
-
public <T> T getProperty(String name, Class<T> type, T defaultValue)
name
-
public Object removeProperty(String name)
removeProperty
in interface AsyncHttpProviderConfig<String,Object>
name
-
public Set<Map.Entry<String,Object>> propertiesSet()
propertiesSet
in interface AsyncHttpProviderConfig<String,Object>
public void setDisableZeroCopy(boolean disableZeroCopy)
public boolean isDisableZeroCopy()
public org.jboss.netty.util.Timer getNettyTimer()
public void setNettyTimer(org.jboss.netty.util.Timer nettyTimer)
public long getHandshakeTimeoutInMillis()
public void setHandshakeTimeoutInMillis(long handshakeTimeoutInMillis)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |