Skip to content

Commit 86fc3c1

Browse files
committed
Added forceHealthCheck() method to the ConnectionPool
1 parent ad0f257 commit 86fc3c1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/javaxt/sql/ConnectionPool.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,18 @@ PooledConnectionWrapper markUsed() {
10231023
}
10241024

10251025

1026+
//**************************************************************************
1027+
//** forceHealthCheck
1028+
//**************************************************************************
1029+
/** Synchronously runs a single health-check pass. In normal operation the
1030+
* same health-check runs on a background scheduler every 30 seconds. Safe
1031+
* to call at any time.
1032+
*/
1033+
public void forceHealthCheck() {
1034+
performHealthCheck();
1035+
}
1036+
1037+
10261038
//**************************************************************************
10271039
//** getPoolStatistics
10281040
//**************************************************************************

0 commit comments

Comments
 (0)