public class NettyAsyncHttpProviderConfig extends Object implements AsyncHttpProviderConfig<String,Object>
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 |
ExecutorService |
getBossExecutorService() |
ChannelPool |
getChannelPool() |
int |
getChunkedFileChunkSize() |
long |
getHandshakeTimeoutInMillis() |
int |
getHttpClientCodecMaxChunkSize() |
int |
getHttpClientCodecMaxHeaderSize() |
int |
getHttpClientCodecMaxInitialLineLength() |
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
|
org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory |
getSocketChannelFactory() |
SSLEngineFactory |
getSslEngineFactory() |
boolean |
isDisableZeroCopy() |
boolean |
isUseDeadLockChecker() |
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 |
setBossExecutorService(ExecutorService bossExecutorService) |
void |
setChannelPool(ChannelPool channelPool) |
void |
setChunkedFileChunkSize(int chunkedFileChunkSize) |
void |
setDisableZeroCopy(boolean disableZeroCopy) |
void |
setHandshakeTimeoutInMillis(long handshakeTimeoutInMillis) |
void |
setHttpClientCodecMaxChunkSize(int httpClientCodecMaxChunkSize) |
void |
setHttpClientCodecMaxHeaderSize(int httpClientCodecMaxHeaderSize) |
void |
setHttpClientCodecMaxInitialLineLength(int httpClientCodecMaxInitialLineLength) |
void |
setNettyTimer(org.jboss.netty.util.Timer nettyTimer) |
void |
setSocketChannelFactory(org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory socketChannelFactory) |
void |
setSslEngineFactory(SSLEngineFactory sslEngineFactory) |
void |
setUseDeadLockChecker(boolean useDeadLockChecker) |
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 boolean isUseDeadLockChecker()
public void setUseDeadLockChecker(boolean useDeadLockChecker)
public ExecutorService getBossExecutorService()
public void setBossExecutorService(ExecutorService bossExecutorService)
public int getHttpClientCodecMaxInitialLineLength()
public void setHttpClientCodecMaxInitialLineLength(int httpClientCodecMaxInitialLineLength)
public int getHttpClientCodecMaxHeaderSize()
public void setHttpClientCodecMaxHeaderSize(int httpClientCodecMaxHeaderSize)
public int getHttpClientCodecMaxChunkSize()
public void setHttpClientCodecMaxChunkSize(int httpClientCodecMaxChunkSize)
public org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory getSocketChannelFactory()
public void setSocketChannelFactory(org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory socketChannelFactory)
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)
public ChannelPool getChannelPool()
public void setChannelPool(ChannelPool channelPool)
public SSLEngineFactory getSslEngineFactory()
public void setSslEngineFactory(SSLEngineFactory sslEngineFactory)
public int getChunkedFileChunkSize()
public void setChunkedFileChunkSize(int chunkedFileChunkSize)
Copyright © 2014. All Rights Reserved.