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 |
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
|
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 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 |
long |
getHandshakeTimeoutInMillis() |
org.jboss.netty.util.Timer |
getNettyTimer() |
Object |
getProperty(String name)
Return the value associated with the property's name
|
<T> T |
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) |
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 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
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 <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)
Copyright © 2015. All Rights Reserved.