Fix #300 add isClosed() method to HikariDataSource

pull/307/head
Brett Wooldridge 10 years ago
parent bd5233b022
commit 4d20b0aa07

@ -283,6 +283,16 @@ public class HikariDataSource extends HikariConfig implements DataSource, Closea
}
}
/**
* Determine whether the HikariDataSource has been closed.
*
* @return true if the HikariDataSource has been closed, false otherwise
*/
public boolean isClosed()
{
return isShutdown;
}
/**
* Shutdown the DataSource and its associated pool.
*

Loading…
Cancel
Save