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.setMaxConnLifetimeMillis(long)
  • Loading branch information
garydgregory committed Dec 15, 2024
1 parent 163ce7c commit 4b3ce8f
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,19 +297,6 @@ public void setMaxConnLifetime(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 maxConnLifetimeMillis
* A value of zero or less indicates an infinite lifetime. The default value is -1.
* @deprecated Use {@link #setMaxConn(Duration)}.
*/
@Deprecated
public void setMaxConnLifetimeMillis(final long maxConnLifetimeMillis) {
setMaxConnLifetime(Duration.ofMillis(maxConnLifetimeMillis));
}

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

0 comments on commit 4b3ce8f

Please sign in to comment.