org.apithefire.sql.connect
Interface ConnectionPool

All Superinterfaces:
Closeable, ConnectionProvider

public interface ConnectionPool
extends ConnectionProvider

A ConnectionPool is a cache of database connections.

Author:
Chew Boon Aik

Nested Class Summary
static interface ConnectionPool.ConnectionPoolBuilder
          A ConnectionPool builder.
 
Method Summary
 void close()
          Close all connections of this connection pool.
 int getMaxPoolSize()
          Returns maximum connection pool size.
 int getMinPoolSize()
          Returns minimum connection pool size.
 
Methods inherited from interface org.apithefire.sql.connect.ConnectionProvider
getConnection
 

Method Detail

getMinPoolSize

int getMinPoolSize()
Returns minimum connection pool size.


getMaxPoolSize

int getMaxPoolSize()
Returns maximum connection pool size.


close

void close()
Close all connections of this connection pool.

Specified by:
close in interface Closeable


Copyright © 2008. All Rights Reserved.