org.apithefire.sql.connect
Interface ConnectionPool.ConnectionPoolBuilder

All Superinterfaces:
Builder
Enclosing interface:
ConnectionPool

public static interface ConnectionPool.ConnectionPoolBuilder
extends Builder

A ConnectionPool builder.

Author:
Chew Boon Aik

Method Summary
 ConnectionPool build()
          Builds a new ConnectionPool.
 ConnectionPool.ConnectionPoolBuilder setConnectionProvider(ConnectionProvider connectionProvider)
          Sets the underlying connection provider.
 ConnectionPool.ConnectionPoolBuilder setMaxPoolSize(int maxPoolSize)
          Sets maximum connection pool size.
 ConnectionPool.ConnectionPoolBuilder setMinPoolSize(int minPoolSize)
          Sets minimum connection pool size.
 

Method Detail

setConnectionProvider

ConnectionPool.ConnectionPoolBuilder setConnectionProvider(ConnectionProvider connectionProvider)
Sets the underlying connection provider.

Returns:
this builder

setMinPoolSize

ConnectionPool.ConnectionPoolBuilder setMinPoolSize(int minPoolSize)
Sets minimum connection pool size.

Returns:
this builder

setMaxPoolSize

ConnectionPool.ConnectionPoolBuilder setMaxPoolSize(int maxPoolSize)
Sets maximum connection pool size.

Returns:
this builder

build

ConnectionPool build()
Builds a new ConnectionPool.

Specified by:
build in interface Builder
Returns:
the built ConnectionPool


Copyright © 2008. All Rights Reserved.