use of org.apache.tomcat.jdbc.pool.JdbcInterceptor in project tomcat by apache.
the class ResetAbandonedTimer method resetTimer.
public boolean resetTimer() {
boolean result = false;
JdbcInterceptor interceptor = this.getNext();
while (interceptor != null && result == false) {
if (interceptor instanceof ProxyConnection) {
PooledConnection con = ((ProxyConnection) interceptor).getConnection();
if (con != null) {
con.setTimestamp(System.currentTimeMillis());
result = true;
} else {
break;
}
}
interceptor = interceptor.getNext();
}
return result;
}
Aggregations