This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 40fcd5345826c51fd8272e4a90fdcf10c6547b18
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Jan 24 13:06:08 2023 +0000

    Deprecate in preparation for switching to LongAddr
---
 .../org/apache/catalina/core/StandardWrapperValve.java | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/java/org/apache/catalina/core/StandardWrapperValve.java 
b/java/org/apache/catalina/core/StandardWrapperValve.java
index e22d755e01..5d2f0f2456 100644
--- a/java/org/apache/catalina/core/StandardWrapperValve.java
+++ b/java/org/apache/catalina/core/StandardWrapperValve.java
@@ -288,10 +288,28 @@ final class StandardWrapperValve extends ValveBase {
         return minTime;
     }
 
+    /**
+     * Returns the number of requests processed by the associated wrapper.
+     *
+     * @return the number of requests processed by the associated wrapper.
+     *
+     * @deprecated The return type will change to long in Tomcat 11 onwards. 
Callers of this method should switch to
+     *                 storing the result of calls to this method in a long 
value rather than an int.
+     */
+    @Deprecated
     public int getRequestCount() {
         return requestCount.get();
     }
 
+    /**
+     * Returns the number of requests processed by the associated wrapper that 
resulted in an error.
+     *
+     * @return the number of requests processed by the associated wrapper that 
resulted in an error.
+     *
+     * @deprecated The return type will change to long in Tomcat 11 onwards. 
Callers of this method should switch to
+     *                 storing the result of calls to this method in a long 
value rather than an int.
+     */
+    @Deprecated
     public int getErrorCount() {
         return errorCount.get();
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to