|
|
|
@ -605,7 +605,7 @@ public final class HikariPool extends PoolBase implements HikariPoolMXBean, IBag
|
|
|
|
|
/**
|
|
|
|
|
* "Soft" evict a Connection (/PoolEntry) from the pool. If this method is being called by the user directly
|
|
|
|
|
* through {@link com.zaxxer.hikari.HikariDataSource#evictConnection(Connection)} then {@code owner} is {@code true}.
|
|
|
|
|
*
|
|
|
|
|
* <p>
|
|
|
|
|
* If the caller is the owner, or if the Connection is idle (i.e. can be "reserved" in the {@link ConcurrentBag}),
|
|
|
|
|
* then we can close the connection immediately. Otherwise, we leave it "marked" for eviction so that it is evicted
|
|
|
|
|
* the next time someone tries to acquire it from the pool.
|
|
|
|
@ -683,7 +683,7 @@ public final class HikariPool extends PoolBase implements HikariPoolMXBean, IBag
|
|
|
|
|
* timeout, e.g. a SQLException thrown by the driver while trying to create a new Connection, then use the
|
|
|
|
|
* SQL State from that exception as our own and additionally set that exception as the "next" SQLException inside
|
|
|
|
|
* our exception.
|
|
|
|
|
*
|
|
|
|
|
* <p>
|
|
|
|
|
* As a side effect, log the timeout failure at DEBUG, and record the timeout failure in the metrics tracker.
|
|
|
|
|
*
|
|
|
|
|
* @param startTime the start time (timestamp) of the acquisition attempt
|
|
|
|
@ -769,7 +769,7 @@ public final class HikariPool extends PoolBase implements HikariPoolMXBean, IBag
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* We only create connections if we need another idle connection or have threads still waiting
|
|
|
|
|
* for a new connection. Otherwise we bail out of the request to create.
|
|
|
|
|
* for a new connection. Otherwise, we bail out of the request to create.
|
|
|
|
|
*
|
|
|
|
|
* @return true if we should create a connection, false if the need has disappeared
|
|
|
|
|
*/
|
|
|
|
|