public final class

NIOReactorParams

extends Object
implements NIOReactorPNames
java.lang.Object
   ↳ org.apache.http.nio.params.NIOReactorParams

Class Overview

Utility class for accessing I/O reactor parameters in HttpParams.

See Also

Summary

[Expand]
Inherited Constants
From interface org.apache.http.nio.params.NIOReactorPNames
Public Methods
static int getContentBufferSize(HttpParams params)
Obtains the value of CONTENT_BUFFER_SIZE parameter.
static long getGracePeriod(HttpParams params)
Obtains the value of GRACE_PERIOD parameter.
static boolean getInterestOpsQueueing(HttpParams params)
Obtains the value of INTEREST_OPS_QUEUEING parameter.
static long getSelectInterval(HttpParams params)
Obtains the value of SELECT_INTERVAL parameter.
static void setContentBufferSize(HttpParams params, int size)
Sets value of the CONTENT_BUFFER_SIZE parameter.
static void setGracePeriod(HttpParams params, long ms)
Sets value of the GRACE_PERIOD parameter.
static void setInterestOpsQueueing(HttpParams params, boolean interestOpsQueueing)
Sets value of the INTEREST_OPS_QUEUEING parameter.
static void setSelectInterval(HttpParams params, long ms)
Sets value of the SELECT_INTERVAL parameter.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static int getContentBufferSize (HttpParams params)

Obtains the value of CONTENT_BUFFER_SIZE parameter. If not set, defaults to 4096.

Parameters
params HTTP parameters.
Returns
  • content buffer size.

public static long getGracePeriod (HttpParams params)

Obtains the value of GRACE_PERIOD parameter. If not set, defaults to 500.

Parameters
params HTTP parameters.
Returns
  • shutdown grace period in milliseconds.

public static boolean getInterestOpsQueueing (HttpParams params)

Obtains the value of INTEREST_OPS_QUEUEING parameter. If not set, defaults to false.

Parameters
params HTTP parameters.
Returns
  • interest ops queuing flag.

public static long getSelectInterval (HttpParams params)

Obtains the value of SELECT_INTERVAL parameter. If not set, defaults to 1000.

Parameters
params HTTP parameters.
Returns
  • I/O select interval in milliseconds.

public static void setContentBufferSize (HttpParams params, int size)

Sets value of the CONTENT_BUFFER_SIZE parameter.

Parameters
params HTTP parameters.
size content buffer size.

public static void setGracePeriod (HttpParams params, long ms)

Sets value of the GRACE_PERIOD parameter.

Parameters
params HTTP parameters.
ms shutdown grace period in milliseconds.

public static void setInterestOpsQueueing (HttpParams params, boolean interestOpsQueueing)

Sets value of the INTEREST_OPS_QUEUEING parameter.

Parameters
params HTTP parameters.
interestOpsQueueing interest ops queuing.

public static void setSelectInterval (HttpParams params, long ms)

Sets value of the SELECT_INTERVAL parameter.

Parameters
params HTTP parameters.
ms I/O select interval in milliseconds.