directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucasthei...@apache.org
Subject svn commit: r1593725 - /directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionPool.java
Date Sat, 10 May 2014 20:19:06 GMT
Author: lucastheisen
Date: Sat May 10 20:19:06 2014
New Revision: 1593725

URL: http://svn.apache.org/r1593725
Log:
Added pool configuration to LdapConnectionPool constructors

Modified:
    directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionPool.java

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionPool.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionPool.java?rev=1593725&r1=1593724&r2=1593725&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionPool.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionPool.java
Sat May 10 20:19:06 2014
@@ -53,18 +53,44 @@ public class LdapConnectionPool extends 
     public LdapConnectionPool( LdapConnectionConfig connectionConfig,
         LdapApiService apiService, long timeout )
     {
-        super( newPoolableConnectionFactory( connectionConfig, apiService, timeout ) );
+        this( connectionConfig, apiService, timeout, null );    
+    }
+    
+    
+    /**
+     * Instantiates a new LDAP connection pool.
+     *
+     * @param connectionConfig The connection configuration
+     * @param apiService The api service (codec)
+     * @param timeout The connection timeout in millis
+     * @param poolConfig The pool configuration
+     */
+    public LdapConnectionPool( LdapConnectionConfig connectionConfig,
+        LdapApiService apiService, long timeout, Config poolConfig )
+    {
+        this( newPoolableConnectionFactory( connectionConfig, apiService, timeout ), poolConfig
);
     }
 
 
     /**
      * Instantiates a new LDAP connection pool.
      *
-     * @param factory the LDAP connection factory
+     * @param factory The LDAP connection factory
      */
     public LdapConnectionPool( PoolableLdapConnectionFactory factory )
     {
-        super( factory );
+        this( factory, null );
+    }
+
+    /**
+     * Instantiates a new LDAP connection pool.
+     *
+     * @param factory The LDAP connection factory
+     * @param poolConfig The pool configuration
+     */
+    public LdapConnectionPool( PoolableLdapConnectionFactory factory, Config poolConfig )
+    {
+        super( factory, poolConfig == null ? new Config() : poolConfig );
         this.factory = factory;
     }
 



Mime
View raw message