Openfire 3.4.1 Javadoc

org.jivesoftware.database
Class ConnectionPool

java.lang.Object
  extended by org.jivesoftware.database.ConnectionPool
All Implemented Interfaces:
Runnable

public class ConnectionPool
extends Object
implements Runnable

Database connection pool.

Author:
Jive Software

Constructor Summary
ConnectionPool(String driver, String serverURL, String username, String password, int minCon, int maxCon, double conTimeout, boolean mysqlUseUnicode)
           
 
Method Summary
 void destroy()
           
 void freeConnection()
           
 Connection getConnection()
           
 int getSize()
           
 void run()
          Housekeeping thread.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionPool

public ConnectionPool(String driver,
                      String serverURL,
                      String username,
                      String password,
                      int minCon,
                      int maxCon,
                      double conTimeout,
                      boolean mysqlUseUnicode)
               throws IOException
Throws:
IOException
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Throws:
SQLException

freeConnection

public void freeConnection()

destroy

public void destroy()
             throws SQLException
Throws:
SQLException

getSize

public int getSize()

run

public void run()
Housekeeping thread. This thread runs every 30 seconds and checks connections for the following conditions:

Specified by:
run in interface Runnable

toString

public String toString()
Overrides:
toString in class Object

Openfire 3.4.1 Javadoc

Copyright © 2003-2007 Jive Software.