public class NettyAsyncHttpProviderConfig extends Object implements AsyncHttpProviderConfig<String,Object>
Modifier and Type | Field and Description |
---|---|
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 |
REUSE_ADDRESS
|
static String |
USE_BLOCKING_IO
Use Netty's blocking IO stategy.
|
static String |
USE_DIRECT_BYTEBUFFER
Use direct
ByteBuffer |
Constructor and Description |
---|
NettyAsyncHttpProviderConfig() |
Modifier and Type | Method and Description |
---|---|
NettyAsyncHttpProviderConfig |
addProperty(String name,
Object value)
Add a property that will be used when the AsyncHttpClient initialize its
AsyncHttpProvider |
Object |
getProperty(String name)
Return the value associated with the property's name
|
Set<Map.Entry<String,Object>> |
propertiesSet()
Return the curent entry set.
|
Object |
removeProperty(String name)
Remove the value associated with the property's name
|
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
public NettyAsyncHttpProviderConfig addProperty(String name, Object value)
AsyncHttpProvider
addProperty
in interface AsyncHttpProviderConfig<String,Object>
name
- the name of the propertyvalue
- the value of the propertypublic Object getProperty(String name)
getProperty
in interface AsyncHttpProviderConfig<String,Object>
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>
Copyright © 2015. All rights reserved.