com.atomikos.datasource.pool.ConnectionFactory Maven / Gradle / Ivy
/**
* Copyright (C) 2000-2019 Atomikos
*
* LICENSE CONDITIONS
*
* See http://www.atomikos.com/Main/WhichLicenseApplies for details.
*/
package com.atomikos.datasource.pool;
public interface ConnectionFactory
{
/**
* Opens a new physical connection to the underlying resource and wraps it in a
* pooling-capable {@link XPooledConnection}.
*
* @return the {@link XPooledConnection} wrapping the physical connection.
*
* @throws CreateConnectionException If no connection could be created.
*
*/
XPooledConnection createPooledConnection() throws CreateConnectionException;
}