[spring-extensions] branch master updated: Add max connections property support to HttpClient factory bean.

Brent Putman putmanb at georgetown.edu
Tue Oct 18 17:27:56 EDT 2016


This is an automated email from the git hooks/post-receive script.

putmanb pushed a commit to branch master
in repository spring-extensions.

View the commit online:
http://git.shibboleth.net/view/?p=spring-extensions.git;a=commit;h=f7777af38cac7a441cf00ce1a62f707b9021d87d

The following commit(s) were added to refs/heads/master by this push:
       new  f7777af   Add max connections property support to HttpClient factory bean.
f7777af is described below

commit f7777af38cac7a441cf00ce1a62f707b9021d87d
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Tue Oct 18 17:27:54 2016 -0400

    Add max connections property support to HttpClient factory bean.
---
 .../ext/spring/factory/HttpClientFactoryBean.java      | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java b/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java
index ce214bd..a42e300 100644
--- a/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java
+++ b/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java
@@ -64,6 +64,24 @@ public class HttpClientFactoryBean extends AbstractComponentAwareFactoryBean<Htt
 
         return HttpClient.class;
     }
+    
+    /**
+     * Sets the max total simultaneous connections allowed by the pooling connection manager.
+     * 
+     * @param max the max total connection
+     */
+    public void setMaxConnectionsTotal(final int max) {
+        builder.setMaxConnectionsTotal(max);
+    }
+    
+    /**
+     * Sets the max simultaneous connections per route allowed by the pooling connection manager.
+     * 
+     * @param max the max connections per route
+     */
+    public void setMaxConnectionsPerRoute(final int max) {
+        builder.setMaxConnectionsPerRoute(max);
+    }
 
     /**
      * Sets the maximum length of time in milliseconds to wait for the connection to be established. A value of less

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list