Expose PoolingOptions setters that set both min and max

Description

PoolingOptions enforces the invariant "min <= max" for pairs of related options: set(Core|Max)ConnectionsPerHost and set(Min|Max)SimultaneousRequestsPerConnectionThreshold. This is necessary because these options can be updated at runtime.

This is a bit annoying if you need to modify both options, because the correct order to call the setters will depend on the previous values (ex: given currentMin = 4 and currentMax = 6, if newMin = 7 and newMax = 9 you need to call setMax first; whereas if newMin = 1 and newMax = 2, you need to call setMin first).

Expose a new setter that takes both values and takes care of calling the individual setters in the correct order, for example:

Environment

None

Pull Requests

None

Activity

Show:
Olivier Michallat
June 8, 2015, 4:00 PM

I'm fixing this ticket as part of JAVA-738.

Olivier Michallat
February 13, 2015, 8:55 AM
Fixed

Assignee

Olivier Michallat

Reporter

Olivier Michallat

Labels

PM Priority

None

Reproduced in

None

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Components

Priority

Minor