com.ning.http.client.providers.netty
Class NettyAsyncHttpProviderConfig

java.lang.Object
  extended by com.ning.http.client.providers.netty.NettyAsyncHttpProviderConfig
All Implemented Interfaces:
AsyncHttpProviderConfig<java.lang.String,java.lang.Object>

public class NettyAsyncHttpProviderConfig
extends java.lang.Object
implements AsyncHttpProviderConfig<java.lang.String,java.lang.Object>

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

USE_BLOCKING_IO

public static final java.lang.String USE_BLOCKING_IO
Use Netty's blocking IO stategy.

See Also:
Constant Field Values

USE_DIRECT_BYTEBUFFER

public static final java.lang.String USE_DIRECT_BYTEBUFFER
Use direct ByteBuffer

See Also:
Constant Field Values

EXECUTE_ASYNC_CONNECT

public static final java.lang.String EXECUTE_ASYNC_CONNECT
Execute the connect operation asynchronously.

See Also:
Constant Field Values

DISABLE_NESTED_REQUEST

public static final java.lang.String DISABLE_NESTED_REQUEST
Allow nested request from any AsyncHandler

See Also:
Constant Field Values

BOSS_EXECUTOR_SERVICE

public static final java.lang.String BOSS_EXECUTOR_SERVICE
Allow configuring the Netty's boss executor service.

See Also:
Constant Field Values

REUSE_ADDRESS

public static final java.lang.String REUSE_ADDRESS
See Socket.setReuseAddress(boolean)

See Also:
Constant Field Values
Constructor Detail

NettyAsyncHttpProviderConfig

public NettyAsyncHttpProviderConfig()
Method Detail

addProperty

public NettyAsyncHttpProviderConfig addProperty(java.lang.String name,
                                                java.lang.Object value)
Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider

Specified by:
addProperty in interface AsyncHttpProviderConfig<java.lang.String,java.lang.Object>
Parameters:
name - the name of the property
value - the value of the property
Returns:
this instance of AsyncHttpProviderConfig

getProperty

public java.lang.Object getProperty(java.lang.String name)
Return the value associated with the property's name

Specified by:
getProperty in interface AsyncHttpProviderConfig<java.lang.String,java.lang.Object>
Parameters:
name -
Returns:
this instance of AsyncHttpProviderConfig

removeProperty

public java.lang.Object removeProperty(java.lang.String name)
Remove the value associated with the property's name

Specified by:
removeProperty in interface AsyncHttpProviderConfig<java.lang.String,java.lang.Object>
Parameters:
name -
Returns:
true if removed

propertiesSet

public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> propertiesSet()
Return the curent entry set.

Specified by:
propertiesSet in interface AsyncHttpProviderConfig<java.lang.String,java.lang.Object>
Returns:
a the curent entry set.


Copyright © 2011. All Rights Reserved.