public class

NettyAsyncHttpProviderConfig

extends Object
implements AsyncHttpProviderConfig<U, V>
java.lang.Object
   ↳ com.ning.http.client.providers.netty.NettyAsyncHttpProviderConfig

Class Overview

This class can be used to pass Netty's internal configuration options. See Netty documentation for more information.

Summary

Constants
String BOSS_EXECUTOR_SERVICE Allow configuring the Netty's boss executor service.
String DISABLE_NESTED_REQUEST Allow nested request from any AsyncHandler
String EXECUTE_ASYNC_CONNECT Execute the connect operation asynchronously.
String REUSE_ADDRESS See setReuseAddress(boolean)
String USE_BLOCKING_IO Use Netty's blocking IO stategy.
String USE_DIRECT_BYTEBUFFER Use direct java.nio.ByteBuffer
Public Constructors
NettyAsyncHttpProviderConfig()
Public Methods
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<Entry<String, Object>> propertiesSet()
Return the curent entry set.
Object removeProperty(String name)
Remove the value associated with the property's name
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.ning.http.client.AsyncHttpProviderConfig

Constants

public static final String BOSS_EXECUTOR_SERVICE

Allow configuring the Netty's boss executor service.

Constant Value: "bossExecutorService"

public static final String DISABLE_NESTED_REQUEST

Allow nested request from any AsyncHandler

Constant Value: "disableNestedRequest"

public static final String EXECUTE_ASYNC_CONNECT

Execute the connect operation asynchronously.

Constant Value: "asyncConnect"

public static final String REUSE_ADDRESS

Constant Value: "reuseAddress"

public static final String USE_BLOCKING_IO

Use Netty's blocking IO stategy.

Constant Value: "useBlockingIO"

public static final String USE_DIRECT_BYTEBUFFER

Use direct java.nio.ByteBuffer

Constant Value: "bufferFactory"

Public Constructors

public NettyAsyncHttpProviderConfig ()

Public Methods

public NettyAsyncHttpProviderConfig addProperty (String name, Object value)

Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider

Parameters
name the name of the property
value the value of the property
Returns
  • this instance of AsyncHttpProviderConfig

public Object getProperty (String name)

Return the value associated with the property's name

Returns
  • this instance of AsyncHttpProviderConfig

public Set<Entry<String, Object>> propertiesSet ()

Return the curent entry set.

Returns
  • a the curent entry set.

public Object removeProperty (String name)

Remove the value associated with the property's name

Returns
  • true if removed