Code example for HttpParams

Methods: setLongParameter

0
    public ConnManagerParamBean (final HttpParams params) {
        super(params);
    } 
     
    public void setTimeout (final long timeout) {
        params.setLongParameter(ConnManagerPNames.TIMEOUT, timeout);
    } 
 
    /** @see ConnManagerPNames#MAX_TOTAL_CONNECTIONS */ 
    public void setMaxTotalConnections (final int maxConnections) {
        params.setIntParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, maxConnections);
    } 
     
    /** @see ConnManagerPNames#MAX_CONNECTIONS_PER_ROUTE */ 
    public void setConnectionsPerRoute(final ConnPerRouteBean connPerRoute) {
        params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, connPerRoute);
    } 
 
}