|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 java.lang.String |
BOSS_EXECUTOR_SERVICE
Allow configuring the Netty's boss executor service. |
static java.lang.String |
DISABLE_NESTED_REQUEST
Allow nested request from any AsyncHandler |
static java.lang.String |
EXECUTE_ASYNC_CONNECT
Execute the connect operation asynchronously. |
static java.lang.String |
REUSE_ADDRESS
See Socket.setReuseAddress(boolean) |
static java.lang.String |
USE_BLOCKING_IO
Use Netty's blocking IO stategy. |
static java.lang.String |
USE_DIRECT_BYTEBUFFER
Use direct ByteBuffer |
Constructor Summary | |
---|---|
NettyAsyncHttpProviderConfig()
|
Method Summary | |
---|---|
NettyAsyncHttpProviderConfig |
addProperty(java.lang.String name,
java.lang.Object value)
Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider |
java.lang.Object |
getProperty(java.lang.String name)
Return the value associated with the property's name |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
propertiesSet()
Return the curent entry set. |
java.lang.Object |
removeProperty(java.lang.String name)
Remove the value associated with the property's name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USE_BLOCKING_IO
public static final java.lang.String USE_DIRECT_BYTEBUFFER
ByteBuffer
public static final java.lang.String EXECUTE_ASYNC_CONNECT
public static final java.lang.String DISABLE_NESTED_REQUEST
AsyncHandler
public static final java.lang.String BOSS_EXECUTOR_SERVICE
public static final java.lang.String REUSE_ADDRESS
Socket.setReuseAddress(boolean)
Constructor Detail |
---|
public NettyAsyncHttpProviderConfig()
Method Detail |
---|
public NettyAsyncHttpProviderConfig addProperty(java.lang.String name, java.lang.Object value)
AsyncHttpProvider
addProperty
in interface AsyncHttpProviderConfig<java.lang.String,java.lang.Object>
name
- the name of the propertyvalue
- the value of the property
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface AsyncHttpProviderConfig<java.lang.String,java.lang.Object>
name
-
public java.lang.Object removeProperty(java.lang.String name)
removeProperty
in interface AsyncHttpProviderConfig<java.lang.String,java.lang.Object>
name
-
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> propertiesSet()
propertiesSet
in interface AsyncHttpProviderConfig<java.lang.String,java.lang.Object>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |