Skip to content

Commit

Permalink
Remove method from package private class
Browse files Browse the repository at this point in the history
- This change is binary compatible since the class is package-private
- Removed
org.apache.commons.dbcp2.datasources.CPDSConnectionFactory.setMaxConnLifetime(Duration)
  • Loading branch information
garydgregory committed Dec 15, 2024
1 parent 4b3ce8f commit cc5e606
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,20 +283,6 @@ public void setMaxConn(final Duration maxConnDuration) {
this.maxConnDuration = maxConnDuration;
}

/**
* Sets the maximum lifetime in milliseconds of a connection after which the connection will always fail activation,
* passivation and validation.
*
* @param maxConnDuration
* A value of zero or less indicates an infinite lifetime. The default value is -1 milliseconds.
* @since 2.9.0
* @deprecated Use {@link #setMaxConn(Duration)}.
*/
@Deprecated
public void setMaxConnLifetime(final Duration maxConnDuration) {
this.maxConnDuration = maxConnDuration;
}

/**
* Sets the database password used when creating new connections.
*
Expand Down

0 comments on commit cc5e606

Please sign in to comment.