Logging message correction, additional javadoc.

pull/192/head
Brett Wooldridge 11 years ago
parent 6361af4f53
commit 872e9d642a

@ -227,7 +227,7 @@ public final class HikariPool implements HikariPoolMBean, IBagStateListener
}
if (isBroken || isShutdown) {
LOGGER.debug("Connection returned to pool {} is broken, or the pool is shutting down. Closing connection.", configuration.getPoolName());
LOGGER.debug("Connection returned to pool {} is broken, or the pool has been shut down. Closing connection.", configuration.getPoolName());
closeConnection(bagEntry);
return;
}
@ -271,6 +271,11 @@ public final class HikariPool implements HikariPoolMBean, IBagStateListener
}
}
/**
* Evict a connection from the pool.
*
* @param proxyConnection the connection to evict
*/
public void evictConnection(IHikariConnectionProxy proxyConnection) {
closeConnection(proxyConnection.getPoolBagEntry());
}

@ -224,7 +224,7 @@ public final class HikariPool implements HikariPoolMBean, IBagStateListener
}
if (isBroken || isShutdown) {
LOGGER.debug("Connection returned to pool {} is broken, or the pool is shutting down. Closing connection.", configuration.getPoolName());
LOGGER.debug("Connection returned to pool {} is broken, or the pool has been shut down. Closing connection.", configuration.getPoolName());
closeConnection(bagEntry);
return;
}
@ -268,6 +268,11 @@ public final class HikariPool implements HikariPoolMBean, IBagStateListener
}
}
/**
* Evict a connection from the pool.
*
* @param proxyConnection the connection to evict
*/
public void evictConnection(IHikariConnectionProxy proxyConnection) {
closeConnection(proxyConnection.getPoolBagEntry());
}

Loading…
Cancel
Save