com.jolbox.bonecp
Interface ConnectionStrategy

All Known Implementing Classes:
AbstractConnectionStrategy, CachedConnectionStrategy, DefaultConnectionStrategy

public interface ConnectionStrategy

Marker interface.

Author:
wallacew

Method Summary
 Connection getConnection()
          Obtains a connection using the configured strategy.
 Connection pollConnection()
          Obtains a connection using the configured strategy without blocking.
 void terminateAllConnections()
          Destroys all connections using this strategy.
 

Method Detail

getConnection

Connection getConnection()
                         throws SQLException
Obtains a connection using the configured strategy. Main entry point.

Returns:
Connection
Throws:
SQLException - on error

pollConnection

Connection pollConnection()
Obtains a connection using the configured strategy without blocking.

Returns:
Connection

terminateAllConnections

void terminateAllConnections()
Destroys all connections using this strategy.



Copyright © 2009-2012 JolBox. All Rights Reserved.