Skip to content

Commit

Permalink
Correct Javadoc for ConnectionPool.suspect().
Browse files Browse the repository at this point in the history
Based on a patch by Yahya Cahyadi.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1758588 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Aug 31, 2016
1 parent 560db93 commit b660817
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,11 @@ protected void abandon(PooledConnection con) {
}

/**
* thread safe way to abandon a connection
* signals a connection to be abandoned.
* this will disconnect the connection, and log the stack trace if logAbanded=true
* Thread safe way to suspect a connection. Similar to
* {@link #abandon(PooledConnection)}, but instead of actually abandoning
* the connection, this will log a warning and set the suspect flag on the
* {@link PooledConnection} if logAbandoned=true
*
* @param con PooledConnection
*/
protected void suspect(PooledConnection con) {
Expand Down
4 changes: 4 additions & 0 deletions webapps/docs/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@
Add log message of when returning the connection that has been marked
suspect. (kfujino)
</fix>
<fix>
Correct Javadoc for <code>ConnectionPool.suspect()</code>. Based on a
patch by Yahya Cahyadi. (markt)
</fix>
</changelog>
</subsection>
<subsection name="Other">
Expand Down

0 comments on commit b660817

Please sign in to comment.