# Deprecated API

## Contents

- Interfaces
- Classes
- Fields
- Methods
- Constructors

Interfaces
org.apache.tomcat.jni.PoolCallback: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.ProcErrorCallback: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.

Classes
org.apache.coyote.ajp.AjpAprProtocol: The APR/Native Connector will be removed in Tomcat 10.1.x onwards.
org.apache.coyote.ContainerThreadMarker: Unused. Will be removed in Tomcat 10.1.x
org.apache.coyote.http11.Http11AprProtocol: The APR/Native Connector will be removed in Tomcat 10.1.x onwards.
org.apache.jasper.el.ELResolverImpl
org.apache.jasper.el.ExpressionEvaluatorImpl
org.apache.jasper.el.ExpressionImpl
org.apache.jasper.el.FunctionMapperImpl
org.apache.jasper.el.VariableResolverImpl
org.apache.tomcat.dbcp.dbcp2.cpdsadapter.PStmtKeyCPDS: Use `PStmtKey`.
org.apache.tomcat.jni.Address: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Directory: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.File: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.FileInfo: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Global: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Local: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Lock: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Mmap: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Multicast: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.OS: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Poll: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Proc: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Procattr: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Registry: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Shm: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Sockaddr: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Socket: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.SSLSocket: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Status: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Stdlib: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Thread: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.Time: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.jni.User: The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.
org.apache.tomcat.util.net.AprEndpoint: The APR/Native Connector will be removed in Tomcat 10.1.x onwards.
org.apache.tomcat.util.net.AprSSLSupport: The APR/Native Connector will be removed in Tomcat 10.1.x onwards.
org.apache.tomcat.util.net.ContainerThreadMarker: Unused. Will be removed in Tomcat 10.1.x

Fields
org.apache.catalina.core.Constants.Package
org.apache.catalina.core.StandardWrapper.instancePool: This will be removed in Tomcat 10.1 onwards.
org.apache.catalina.core.StandardWrapper.maxInstances: This will be removed in Tomcat 10.1 onwards.
org.apache.catalina.core.StandardWrapper.nInstances: This will be removed in Tomcat 10.1 onwards.
org.apache.catalina.core.StandardWrapper.singleThreadModel: This will be removed in Tomcat 10.1 onwards.
org.apache.catalina.manager.StatusManagerServlet.protocolHandlers: Unused. Will be removed in Tomcat 10.1.x
org.apache.catalina.session.StandardSession.sessionContext
org.apache.catalina.startup.HostConfig.serviced: Unused. Will be removed in Tomcat 10.1.x onwards. Replaced by the private `servicedSet` field.
org.apache.tomcat.dbcp.dbcp2.Utils.IS_SECURITY_ENABLED: No replacement.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS: Use `BaseObjectPoolConfig.DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.DEFAULT_MAX_WAIT_MILLIS: Use `BaseObjectPoolConfig.DEFAULT_MAX_WAIT`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.DEFAULT_MIN_EVICTABLE_IDLE_TIME: Use `BaseObjectPoolConfig.DEFAULT_MIN_EVICTABLE_IDLE_DURATION`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS: Use `BaseObjectPoolConfig.DEFAULT_MIN_EVICTABLE_IDLE_TIME`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME: Use `BaseObjectPoolConfig.DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATION`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS: Use `BaseObjectPoolConfig.DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS: Use `BaseObjectPoolConfig.DEFAULT_TIME_BETWEEN_EVICTION_RUNS`.
org.apache.tomcat.jni.SSL.SSL_OP_PKCS1_CHECK_1: Unsupported in the current version of OpenSSL
org.apache.tomcat.jni.SSL.SSL_OP_PKCS1_CHECK_2: Unsupported in the current version of OpenSSL

Methods
org.apache.catalina.connector.Request.getRealPath​(String): As of version 2.1 of the Java Servlet API, use `ServletContext.getRealPath()`.
org.apache.catalina.connector.Request.isRequestedSessionIdFromUrl(): As of Version 2.1 of the Java Servlet API, use `isRequestedSessionIdFromURL()` instead.
org.apache.catalina.connector.Response.encodeRedirectUrl​(String): As of Version 2.1 of the Java Servlet API, use `encodeRedirectURL()` instead.
org.apache.catalina.connector.Response.encodeUrl​(String): As of Version 2.1 of the Java Servlet API, use `encodeURL()` instead.
org.apache.catalina.connector.Response.setStatus​(int, String): As of Version 2.1 of the Java Servlet API, this method has been deprecated due to the ambiguous meaning of the message parameter.
org.apache.catalina.Context.isParallelAnnotationScanning(): This method will be removed in Tomcat 11 onwards
org.apache.catalina.core.ApplicationContext.getServlet​(String)
org.apache.catalina.core.ApplicationContext.getServletNames()
org.apache.catalina.core.ApplicationContext.getServlets()
org.apache.catalina.core.ApplicationContext.log​(Exception, String)
org.apache.catalina.core.ApplicationContextFacade.getServlet​(String): As of Java Servlet API 2.1, with no direct replacement.
org.apache.catalina.core.ApplicationContextFacade.getServletNames(): As of Java Servlet API 2.1, with no direct replacement.
org.apache.catalina.core.ApplicationContextFacade.getServlets(): As of Java Servlet API 2.1, with no direct replacement.
org.apache.catalina.core.ApplicationContextFacade.log​(Exception, String): As of Java Servlet API 2.1, use `log(String, Throwable)` instead
org.apache.catalina.core.StandardThreadExecutor.execute​(Runnable, long, TimeUnit)
org.apache.catalina.core.StandardWrapper.getMaxInstances(): This will be removed in Tomcat 10.1 onwards.
org.apache.catalina.core.StandardWrapper.isSingleThreadModel(): This will be removed in Tomcat 10.1 onwards.
org.apache.catalina.core.StandardWrapper.setMaxInstances​(int): This will be removed in Tomcat 10.1 onwards.
org.apache.catalina.Executor.execute​(Runnable, long, TimeUnit): Unused. Will be removed in Tomcat 10.1.x onwards.
org.apache.catalina.filters.CsrfPreventionFilter.CsrfResponseWrapper.encodeRedirectUrl​(String)
org.apache.catalina.filters.CsrfPreventionFilter.CsrfResponseWrapper.encodeUrl​(String)
org.apache.catalina.ha.deploy.FarmWarDeployer.addServiced​(String): Unused. Will be removed in Tomcat 10.1.x onwards. Use `FarmWarDeployer.tryAddServiced(java.lang.String)`
org.apache.catalina.ha.deploy.FarmWarDeployer.isServiced​(String): Unused. Will be removed in Tomcat 10.1.x onwards.
org.apache.catalina.manager.ManagerServlet.addServiced​(String): Unused. Will be removed in Tomcat 10.1.x onwards. Use `ManagerServlet.tryAddServiced(java.lang.String)`
org.apache.catalina.manager.ManagerServlet.isServiced​(String): Unused. Will be removed in Tomcat 10.1.x onwards.
org.apache.catalina.manager.StatusTransformer.writeOSState​(PrintWriter, int, Object[]): This method will be removed in Tomcat 10.1.x onwards
org.apache.catalina.realm.JNDIRealm.doRFC2254Encoding​(String): Will be removed in Tomcat 10.1.x onwards
org.apache.catalina.session.StandardSession.getSessionContext(): As of Version 2.1, this method is deprecated and has no replacement. It will be removed in a future version of the Java Servlet API.
org.apache.catalina.session.StandardSession.getValue​(String): As of Version 2.2, this method is replaced by `getAttribute()`
org.apache.catalina.session.StandardSession.getValueNames(): As of Version 2.2, this method is replaced by `getAttributeNames()`
org.apache.catalina.session.StandardSession.putValue​(String, Object): As of Version 2.2, this method is replaced by `setAttribute()`
org.apache.catalina.session.StandardSession.removeValue​(String): As of Version 2.2, this method is replaced by `removeAttribute()`
org.apache.catalina.session.StandardSessionFacade.getSessionContext(): As of Version 2.1, this method is deprecated and has no replacement.
org.apache.catalina.session.StandardSessionFacade.getValue​(String): As of Version 2.2, this method is replaced by `StandardSessionFacade.getAttribute(java.lang.String)`.
org.apache.catalina.session.StandardSessionFacade.getValueNames(): As of Version 2.2, this method is replaced by `StandardSessionFacade.getAttributeNames()`
org.apache.catalina.session.StandardSessionFacade.putValue​(String, Object): As of Version 2.2, this method is replaced by `StandardSessionFacade.setAttribute(java.lang.String, java.lang.Object)`
org.apache.catalina.session.StandardSessionFacade.removeValue​(String): As of Version 2.2, this method is replaced by `StandardSessionFacade.removeAttribute(java.lang.String)`
org.apache.catalina.startup.HostConfig.addServiced​(String): Unused. This method will be removed in Tomcat 10.1.x onwards. Use `HostConfig.tryAddServiced(java.lang.String)` instead.
org.apache.catalina.startup.HostConfig.isServiced​(String): Unused. This method will be removed in Tomcat 10.1.x onwards. Use `HostConfig.tryAddServiced(java.lang.String)` instead.
org.apache.catalina.users.MemoryUserDatabase.isWriteable(): Use `MemoryUserDatabase.isWritable()`. This method will be removed in Tomcat 10.1.x onwards.
org.apache.catalina.valves.RemoteIpValve.listToCommaDelimitedString​(List<String>): Unused. This will be removed in Tomcat 10.1.x onwards. Use `StringUtils.join(java.util.Collection)` instead
org.apache.coyote.ajp.AbstractAjpProtocol.getRequiredSecret(): Replaced by `AbstractAjpProtocol.getSecret()`. Will be removed in Tomcat 11 onwards
org.apache.coyote.ajp.AbstractAjpProtocol.setRequiredSecret​(String): Replaced by `AbstractAjpProtocol.setSecret(String)`. Will be removed in Tomcat 11 onwards
org.apache.coyote.ProtocolHandler.isAprRequired(): This method will be removed in Tomcat 10.1.x onwards
org.apache.coyote.Request.setStartTime​(long): This setter will be removed in Tomcat 11
org.apache.jasper.runtime.JspContextWrapper.getExpressionEvaluator()
org.apache.jasper.runtime.JspContextWrapper.getVariableResolver()
org.apache.jasper.runtime.JspContextWrapper.resolveVariable​(String)
org.apache.jasper.runtime.PageContextImpl.getExpressionEvaluator()
org.apache.jasper.runtime.PageContextImpl.getVariableResolver()
org.apache.jasper.servlet.JspCServletContext.getServlet​(String): This method has been deprecated with no replacement
org.apache.jasper.servlet.JspCServletContext.getServletNames(): This method has been deprecated with no replacement
org.apache.jasper.servlet.JspCServletContext.getServlets(): This method has been deprecated with no replacement
org.apache.jasper.servlet.JspCServletContext.log​(Exception, String): Use log(String,Throwable) instead
org.apache.tomcat.dbcp.dbcp2.AbandonedTrace.getLastUsed()
org.apache.tomcat.dbcp.dbcp2.AbandonedTrace.setLastUsed​(long): Use `AbandonedTrace.setLastUsed(Instant)`
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getDefaultQueryTimeout(): Use `BasicDataSource.getDefaultQueryTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getEnableAutoCommitOnReturn(): Use `BasicDataSource.getAutoCommitOnReturn()`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getMaxConnLifetimeMillis(): Use `BasicDataSource.getMaxConnDuration()`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getMaxWaitMillis(): Use `BasicDataSource.getMaxWaitDuration()`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getMinEvictableIdleTimeMillis(): Use `BasicDataSource.getMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getRemoveAbandonedTimeout(): Use `BasicDataSource.getRemoveAbandonedTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getSoftMinEvictableIdleTimeMillis(): Use `BasicDataSource.getSoftMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getTimeBetweenEvictionRunsMillis(): Use `BasicDataSource.getDurationBetweenEvictionRuns()`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getValidationQueryTimeout(): Use `BasicDataSource.getValidationQueryTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.setDefaultQueryTimeout​(Integer): Use `BasicDataSource.setDefaultQueryTimeout(Duration)`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.setEnableAutoCommitOnReturn​(boolean): Use `BasicDataSource.setAutoCommitOnReturn(boolean)`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.setMaxConnLifetimeMillis​(long): Use `BasicDataSource.setMaxConn(Duration)`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.setMaxWaitMillis​(long): `BasicDataSource.setMaxWait(Duration)`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.setMinEvictableIdleTimeMillis​(long): Use `BasicDataSource.setMinEvictableIdle(Duration)`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.setRemoveAbandonedTimeout​(int): Use `BasicDataSource.setRemoveAbandonedTimeout(Duration)`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.setSoftMinEvictableIdleTimeMillis​(long): Use `BasicDataSource.setSoftMinEvictableIdle(Duration)`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.setTimeBetweenEvictionRunsMillis​(long): Use `BasicDataSource.setDurationBetweenEvictionRuns(Duration)`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSource.setValidationQueryTimeout​(int): Use `BasicDataSource.setValidationQueryTimeout(Duration)`.
org.apache.tomcat.dbcp.dbcp2.BasicDataSourceMXBean.getPassword(): exposing password via JMX is an Information Exposure issue.
org.apache.tomcat.dbcp.dbcp2.cpdsadapter.DriverAdapterCPDS.getMinEvictableIdleTimeMillis(): USe `DriverAdapterCPDS.getMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.dbcp2.cpdsadapter.DriverAdapterCPDS.getTimeBetweenEvictionRunsMillis(): Use `DriverAdapterCPDS.getDurationBetweenEvictionRuns()`.
org.apache.tomcat.dbcp.dbcp2.cpdsadapter.DriverAdapterCPDS.setMinEvictableIdleTimeMillis​(int): Use `DriverAdapterCPDS.setMinEvictableIdleDuration(Duration)`.
org.apache.tomcat.dbcp.dbcp2.cpdsadapter.DriverAdapterCPDS.setTimeBetweenEvictionRunsMillis​(long): Use `DriverAdapterCPDS.setDurationBetweenEvictionRuns(Duration)`.
org.apache.tomcat.dbcp.dbcp2.DataSourceMXBean.getMaxConnLifetimeMillis(): Use `DataSourceMXBean.getMaxConnDuration()`.
org.apache.tomcat.dbcp.dbcp2.DataSourceMXBean.getMaxWaitMillis(): Use `DataSourceMXBean.getMaxWaitDuration()`.
org.apache.tomcat.dbcp.dbcp2.DataSourceMXBean.getMinEvictableIdleTimeMillis(): Use `DataSourceMXBean.getMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.dbcp2.DataSourceMXBean.getRemoveAbandonedTimeout(): Use `DataSourceMXBean.getRemoveAbandonedTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.DataSourceMXBean.getSoftMinEvictableIdleTimeMillis(): Use `DataSourceMXBean.getSoftMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.dbcp2.DataSourceMXBean.getTimeBetweenEvictionRunsMillis(): Use `DataSourceMXBean.getDurationBetweenEvictionRuns()`.
org.apache.tomcat.dbcp.dbcp2.DataSourceMXBean.getValidationQueryTimeout(): Use `DataSourceMXBean.getValidationQueryTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.getDefaultMaxWaitMillis(): Use `InstanceKeyDataSource.getDefaultMaxWait()`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.getDefaultMinEvictableIdleTimeMillis(): Use `InstanceKeyDataSource.getDefaultMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.getDefaultSoftMinEvictableIdleTimeMillis(): Use `InstanceKeyDataSource.getDefaultSoftMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.getDefaultTimeBetweenEvictionRunsMillis(): Use `InstanceKeyDataSource.getDefaultDurationBetweenEvictionRuns()`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.getLoginTimeout(): Use `InstanceKeyDataSource.getLoginTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.getMaxConnLifetime(): Use `InstanceKeyDataSource.getMaxConnDuration()`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.getMaxConnLifetimeMillis(): Use `InstanceKeyDataSource.getMaxConnLifetime()`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.getValidationQueryTimeout(): Use `InstanceKeyDataSource.getValidationQueryTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.setDefaultMaxWaitMillis​(long): Use `InstanceKeyDataSource.setDefaultMaxWait(Duration)`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.setDefaultMinEvictableIdleTimeMillis​(long): Use `InstanceKeyDataSource.setDefaultMinEvictableIdle(Duration)`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.setDefaultSoftMinEvictableIdleTimeMillis​(long): Use `InstanceKeyDataSource.setDefaultSoftMinEvictableIdle(Duration)`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.setDefaultTimeBetweenEvictionRunsMillis​(long): Use `InstanceKeyDataSource.setDefaultDurationBetweenEvictionRuns(Duration)`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.setLoginTimeout​(int): Use `InstanceKeyDataSource.setLoginTimeout(Duration)`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.setMaxConnLifetimeMillis​(long): Use `InstanceKeyDataSource.setMaxConnLifetime(Duration)`.
org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSource.setValidationQueryTimeout​(int): Use `InstanceKeyDataSource.setValidationQueryTimeout(Duration)`.
org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolDataSource.getPerUserMaxWaitMillis​(String): Use `PerUserPoolDataSource.getPerUserMaxWaitDuration(java.lang.String)`.
org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolDataSource.getPerUserMinEvictableIdleTimeMillis​(String): Use `PerUserPoolDataSource.getPerUserMinEvictableIdleDuration(String)`.
org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolDataSource.getPerUserSoftMinEvictableIdleTimeMillis​(String): Use `PerUserPoolDataSource.getPerUserSoftMinEvictableIdleDuration(String)`.
org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolDataSource.getPerUserTimeBetweenEvictionRunsMillis​(String): Use `PerUserPoolDataSource.getPerUserDurationBetweenEvictionRuns(String)`.
org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolDataSource.setPerUserMaxWaitMillis​(String, Long): Use `PerUserPoolDataSource.setPerUserMaxWait(String, Duration)`.
org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolDataSource.setPerUserMinEvictableIdleTimeMillis​(String, Long): Use `PerUserPoolDataSource.setPerUserMinEvictableIdle(String, Duration)`.
org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolDataSource.setPerUserSoftMinEvictableIdleTimeMillis​(String, Long): Use `PerUserPoolDataSource.setPerUserSoftMinEvictableIdle(String, Duration)`.
org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolDataSource.setPerUserTimeBetweenEvictionRunsMillis​(String, Long): Use `PerUserPoolDataSource.setPerUserDurationBetweenEvictionRuns(String, Duration)`.
org.apache.tomcat.dbcp.dbcp2.DelegatingCallableStatement.getBigDecimal​(int, int): Use `DelegatingCallableStatement.getBigDecimal(int)` or `DelegatingCallableStatement.getBigDecimal(String)`
org.apache.tomcat.dbcp.dbcp2.DelegatingConnection.getDefaultQueryTimeout(): Use `DelegatingConnection.getDefaultQueryTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.DelegatingConnection.isValid​(int): Use `DelegatingConnection.isValid(Duration)`.
org.apache.tomcat.dbcp.dbcp2.DelegatingConnection.setDefaultQueryTimeout​(Integer): Use `DelegatingConnection.setDefaultQueryTimeout(Duration)`.
org.apache.tomcat.dbcp.dbcp2.DelegatingPreparedStatement.setUnicodeStream​(int, InputStream, int): Use setAsciiStream(), setCharacterStream() or setNCharacterStream()
org.apache.tomcat.dbcp.dbcp2.DelegatingResultSet.getBigDecimal​(int, int): Use `DelegatingResultSet.getBigDecimal(int)`
org.apache.tomcat.dbcp.dbcp2.DelegatingResultSet.getUnicodeStream​(int): Use `DelegatingResultSet.getCharacterStream(int)`
org.apache.tomcat.dbcp.dbcp2.managed.DataSourceXAConnectionFactory.getUsername(): Use `DataSourceXAConnectionFactory.getUserName()`.
org.apache.tomcat.dbcp.dbcp2.PoolableConnection.validate​(String, int): Use `PoolableConnection.validate(String, Duration)`.
org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.getDefaultQueryTimeout(): Use `PoolableConnectionFactory.getDefaultQueryTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.getDefaultQueryTimeoutSeconds(): Use `PoolableConnectionFactory.getDefaultQueryTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.getValidationQueryTimeoutSeconds(): Use `PoolableConnectionFactory.getValidationQueryTimeoutDuration()`.
org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.isEnableAutoCommitOnReturn(): Use `PoolableConnectionFactory.isAutoCommitOnReturn()`.
org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.setDefaultQueryTimeout​(Integer): Use `PoolableConnectionFactory.setDefaultQueryTimeout(Duration)`.
org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.setEnableAutoCommitOnReturn​(boolean): Use `PoolableConnectionFactory.setAutoCommitOnReturn(boolean)`.
org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.setMaxConnLifetimeMillis​(long): Use `PoolableConnectionFactory.setMaxConn(Duration)`.
org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.setMaxOpenPrepatedStatements​(int): Use `PoolableConnectionFactory.setMaxOpenPreparedStatements(int)`.
org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.setValidationQueryTimeout​(int): `PoolableConnectionFactory.setValidationQueryTimeout(Duration)`.
org.apache.tomcat.dbcp.dbcp2.Utils.closeQuietly​(Connection): Use `Utils.closeQuietly(AutoCloseable)`.
org.apache.tomcat.dbcp.pool2.impl.AbandonedConfig.getRemoveAbandonedTimeout(): Use `AbandonedConfig.getRemoveAbandonedTimeoutDuration()`.
org.apache.tomcat.dbcp.pool2.impl.AbandonedConfig.setRemoveAbandonedTimeout​(int): Use `AbandonedConfig.setRemoveAbandonedTimeout(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.getEvictorShutdownTimeout(): Use `BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.getEvictorShutdownTimeoutMillis(): Use `BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.getMaxWaitMillis(): Use `BaseGenericObjectPool.getMaxWaitDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.getMinEvictableIdleTime(): Use `BaseGenericObjectPool.getMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.getMinEvictableIdleTimeMillis(): Use `BaseGenericObjectPool.getMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.getRemoveAbandonedTimeout(): Use `BaseGenericObjectPool.getRemoveAbandonedTimeoutDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.getSoftMinEvictableIdleTime(): Use `BaseGenericObjectPool.getSoftMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.getSoftMinEvictableIdleTimeMillis(): Use `BaseGenericObjectPool.getSoftMinEvictableIdleTime()`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.getTimeBetweenEvictionRuns(): `BaseGenericObjectPool.getDurationBetweenEvictionRuns()`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.getTimeBetweenEvictionRunsMillis(): Use `BaseGenericObjectPool.getDurationBetweenEvictionRuns()`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.setEvictorShutdownTimeoutMillis​(long): Use `BaseGenericObjectPool.setEvictorShutdownTimeout(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.setMaxWaitMillis​(long): Use `BaseGenericObjectPool.setMaxWait(java.time.Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.setMinEvictableIdleTime​(Duration): Use `BaseGenericObjectPool.setMinEvictableIdle(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.setMinEvictableIdleTimeMillis​(long): Use `BaseGenericObjectPool.setMinEvictableIdleTime(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.setSoftMinEvictableIdleTime​(Duration): Use `BaseGenericObjectPool.setSoftMinEvictableIdle(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.setSoftMinEvictableIdleTimeMillis​(long): Use `BaseGenericObjectPool.setSoftMinEvictableIdle(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseGenericObjectPool.setTimeBetweenEvictionRunsMillis​(long): Use `BaseGenericObjectPool.setTimeBetweenEvictionRuns(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.getEvictorShutdownTimeout(): Use `BaseObjectPoolConfig.getEvictorShutdownTimeoutDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.getEvictorShutdownTimeoutMillis(): Use `BaseObjectPoolConfig.getEvictorShutdownTimeout()`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.getMaxWaitMillis(): Use `BaseObjectPoolConfig.getMaxWaitDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.getMinEvictableIdleTime(): Use `BaseObjectPoolConfig.getMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.getMinEvictableIdleTimeMillis(): Use `BaseObjectPoolConfig.getMinEvictableIdleTime()`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.getSoftMinEvictableIdleTime(): Use `BaseObjectPoolConfig.getSoftMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.getSoftMinEvictableIdleTimeMillis(): Use `BaseObjectPoolConfig.getSoftMinEvictableIdleDuration()`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.getTimeBetweenEvictionRuns(): Use `BaseObjectPoolConfig.getDurationBetweenEvictionRuns()`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.getTimeBetweenEvictionRunsMillis(): Use `BaseObjectPoolConfig.getDurationBetweenEvictionRuns()`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.setEvictorShutdownTimeoutMillis​(Duration): Use `BaseObjectPoolConfig.setEvictorShutdownTimeout(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.setMaxWaitMillis​(long): Use `BaseObjectPoolConfig.setMaxWait(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.setMinEvictableIdleTimeMillis​(long): Use `BaseObjectPoolConfig.setMinEvictableIdleTime(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.setSoftMinEvictableIdleTimeMillis​(long): Use `BaseObjectPoolConfig.setSoftMinEvictableIdleTime(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig.setTimeBetweenEvictionRunsMillis​(long): Use `BaseObjectPoolConfig.setTimeBetweenEvictionRuns(Duration)`.
org.apache.tomcat.dbcp.pool2.impl.CallStackUtils.newCallStack​(String, boolean): use `CallStackUtils.newCallStack(String, boolean, boolean)`
org.apache.tomcat.dbcp.pool2.impl.EvictionConfig.getIdleEvictTime(): Use `EvictionConfig.getIdleEvictDuration()`.
org.apache.tomcat.dbcp.pool2.impl.EvictionConfig.getIdleEvictTimeDuration(): Use `EvictionConfig.getIdleEvictDuration()`.
org.apache.tomcat.dbcp.pool2.impl.EvictionConfig.getIdleSoftEvictTime(): Use `EvictionConfig.getIdleSoftEvictDuration()`.
org.apache.tomcat.dbcp.pool2.impl.EvictionConfig.getIdleSoftEvictTimeDuration(): Use `EvictionConfig.getIdleSoftEvictDuration()`.
org.apache.tomcat.dbcp.pool2.PooledObject.getActiveTime(): Use `PooledObject.getActiveDuration()`.
org.apache.tomcat.dbcp.pool2.PooledObject.getActiveTimeMillis(): Use `PooledObject.getActiveTime()` which offers the best precision.
org.apache.tomcat.dbcp.pool2.PooledObject.getCreateTime(): Use `PooledObject.getCreateInstant()` which offers the best precision.
org.apache.tomcat.dbcp.pool2.PooledObject.getIdleTime(): Use `PooledObject.getIdleDuration()`.
org.apache.tomcat.dbcp.pool2.PooledObject.getIdleTimeMillis(): Use `PooledObject.getIdleTime()` which offers the best precision.
org.apache.tomcat.dbcp.pool2.PooledObject.getLastBorrowTime(): Use `PooledObject.getLastBorrowInstant()` which offers the best precision.
org.apache.tomcat.dbcp.pool2.PooledObject.getLastReturnTime(): Use `PooledObject.getLastReturnInstant()` which offers the best precision.
org.apache.tomcat.dbcp.pool2.PooledObject.getLastUsedTime(): Use `PooledObject.getLastUsedInstant()` which offers the best precision.
org.apache.tomcat.dbcp.pool2.PoolUtils.prefill​(KeyedObjectPool<K, V>, Collection<K>, int): Use `KeyedObjectPool.addObjects(Collection, int)`.
org.apache.tomcat.dbcp.pool2.TrackedUse.getLastUsed(): Use `TrackedUse.getLastUsedInstant()` which offers the best precision.
org.apache.tomcat.jdbc.pool.PooledConnection.checkUser​(String, String): use `PooledConnection.shouldForceReconnect(String, String)` method kept since it was public, to avoid changing interface.
org.apache.tomcat.jni.SSLContext.setNextProtos​(long, String): use `SSLContext.setNpnProtos(long, String[], int)`
org.apache.tomcat.util.net.Acceptor.stop(): This method will be removed in Tomcat 10.1.x onwards. Use `Acceptor.stop(int)` instead.
org.apache.tomcat.util.net.jsse.JSSEImplementation.getSSLSupport​(SSLSession)
org.apache.tomcat.util.net.openssl.OpenSSLImplementation.getSSLSupport​(SSLSession)
org.apache.tomcat.util.net.SocketWrapperBase.getSslSupport​(String): Will be removed in Tomcat 10.1.x onwards
org.apache.tomcat.util.net.SSLImplementation.getSSLSupport​(SSLSession): This will be removed in Tomcat 10.1.x onwards. Use `SSLImplementation.getSSLSupport(SSLSession, Map)`.
org.apache.tomcat.util.threads.TaskQueue.force​(Runnable, long, TimeUnit): Unused. Will be removed in Tomcat 10.1.x.
org.apache.tomcat.util.threads.ThreadPoolExecutor.execute​(Runnable, long, TimeUnit): This will be removed in Tomcat 10.1.x onwards
org.apache.tomcat.websocket.server.WsServerContainer.doUpgrade​(HttpServletRequest, HttpServletResponse, ServerEndpointConfig, Map<String, String>): This method will be removed in Apache Tomcat 10.1 onwards. It has been replaced by `WsServerContainer.upgradeHttpToWebSocket(Object, Object, ServerEndpointConfig, Map)`
org.apache.tomcat.websocket.Util.getDecoders​(List<Class<? extends Decoder>>): Will be removed in Tomcat 10.1.x. Use `Util.getDecoders(List, InstanceManager)`

Constructors
org.apache.catalina.realm.GenericPrincipal​(String, String, List<String>): This method will be removed in Tomcat 11 onwards
org.apache.tomcat.dbcp.dbcp2.PStmtKey​(String): Use `PStmtKey(String, String, String)`.
org.apache.tomcat.dbcp.pool2.impl.EvictionConfig​(long, long, int): Use `EvictionConfig(Duration, Duration, int)`.
org.apache.tomcat.util.net.jsse.JSSESupport​(SSLSession): This will be removed in Tomcat 10.1.x onwards Use `JSSESupport(SSLSession, Map)`
org.apache.tomcat.websocket.pojo.PojoEndpointClient​(Object, List<Class<? extends Decoder>>)
org.apache.tomcat.websocket.pojo.PojoMethodMapping​(Class<?>, List<Class<? extends Decoder>>, String): Will be removed in Tomcat 10.1.x Use (@link `PojoMethodMapping(Class, List, String, InstanceManager)`
org.apache.tomcat.websocket.WsSession​(Endpoint, WsRemoteEndpointImplBase, WsWebSocketContainer, URI, Map<String, List<String>>, String, Principal, String, List<Extension>, String, Map<String, String>, boolean, EndpointConfig): Unused. This will be removed in Tomcat 10.1