Package org.apache.http.nio.params
Class NIOReactorParams
java.lang.Object
org.apache.http.nio.params.NIOReactorParams
- All Implemented Interfaces:
NIOReactorPNames
Deprecated.
Utility class for accessing I/O reactor parameters in
HttpParams.- Since:
- 4.0
- See Also:
-
Field Summary
Fields inherited from interface org.apache.http.nio.params.NIOReactorPNames
CONTENT_BUFFER_SIZE, GRACE_PERIOD, INTEREST_OPS_QUEUEING, SELECT_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetContentBufferSize(HttpParams params) Deprecated.Obtains the value ofNIOReactorPNames.CONTENT_BUFFER_SIZEparameter.static longgetGracePeriod(HttpParams params) Deprecated.Obtains the value ofNIOReactorPNames.GRACE_PERIODparameter.static booleangetInterestOpsQueueing(HttpParams params) Deprecated.Obtains the value ofNIOReactorPNames.INTEREST_OPS_QUEUEINGparameter.static longgetSelectInterval(HttpParams params) Deprecated.Obtains the value ofNIOReactorPNames.SELECT_INTERVALparameter.static voidsetContentBufferSize(HttpParams params, int size) Deprecated.Sets value of theNIOReactorPNames.CONTENT_BUFFER_SIZEparameter.static voidsetGracePeriod(HttpParams params, long ms) Deprecated.Sets value of theNIOReactorPNames.GRACE_PERIODparameter.static voidsetInterestOpsQueueing(HttpParams params, boolean interestOpsQueueing) Deprecated.Sets value of theNIOReactorPNames.INTEREST_OPS_QUEUEINGparameter.static voidsetSelectInterval(HttpParams params, long ms) Deprecated.Sets value of theNIOReactorPNames.SELECT_INTERVALparameter.
-
Method Details
-
getContentBufferSize
Deprecated.Obtains the value ofNIOReactorPNames.CONTENT_BUFFER_SIZEparameter. If not set, defaults to4096.- Parameters:
params- HTTP parameters.- Returns:
- content buffer size.
-
setContentBufferSize
Deprecated.Sets value of theNIOReactorPNames.CONTENT_BUFFER_SIZEparameter.- Parameters:
params- HTTP parameters.size- content buffer size.
-
getSelectInterval
Deprecated.Obtains the value ofNIOReactorPNames.SELECT_INTERVALparameter. If not set, defaults to1000.- Parameters:
params- HTTP parameters.- Returns:
- I/O select interval in milliseconds.
-
setSelectInterval
Deprecated.Sets value of theNIOReactorPNames.SELECT_INTERVALparameter.- Parameters:
params- HTTP parameters.ms- I/O select interval in milliseconds.
-
getGracePeriod
Deprecated.Obtains the value ofNIOReactorPNames.GRACE_PERIODparameter. If not set, defaults to500.- Parameters:
params- HTTP parameters.- Returns:
- shutdown grace period in milliseconds.
-
setGracePeriod
Deprecated.Sets value of theNIOReactorPNames.GRACE_PERIODparameter.- Parameters:
params- HTTP parameters.ms- shutdown grace period in milliseconds.
-
getInterestOpsQueueing
Deprecated.Obtains the value ofNIOReactorPNames.INTEREST_OPS_QUEUEINGparameter. If not set, defaults tofalse.- Parameters:
params- HTTP parameters.- Returns:
- interest ops queuing flag.
- Since:
- 4.1
-
setInterestOpsQueueing
Deprecated.Sets value of theNIOReactorPNames.INTEREST_OPS_QUEUEINGparameter.- Parameters:
params- HTTP parameters.interestOpsQueueing- interest ops queuing.- Since:
- 4.1
-
IOReactorConfig