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

remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 15927d1794 Make stats volatile
15927d1794 is described below

commit 15927d179401cbc7f82ef8ae1b7c01148b1177f1
Author: remm <r...@apache.org>
AuthorDate: Thu Sep 28 10:58:11 2023 +0200

    Make stats volatile
    
    Also remove useless method override.
---
 .../apache/catalina/ha/session/DeltaManager.java   | 46 +++++++++-------------
 1 file changed, 19 insertions(+), 27 deletions(-)

diff --git a/java/org/apache/catalina/ha/session/DeltaManager.java 
b/java/org/apache/catalina/ha/session/DeltaManager.java
index 70e71f8d1b..47809b03bd 100644
--- a/java/org/apache/catalina/ha/session/DeltaManager.java
+++ b/java/org/apache/catalina/ha/session/DeltaManager.java
@@ -86,25 +86,25 @@ public class DeltaManager extends ClusterManagerBase {
 
     // -------------------------------------------------------- stats 
attributes
 
-    private long sessionReplaceCounter = 0;
-    private long counterReceive_EVT_GET_ALL_SESSIONS = 0;
-    private long counterReceive_EVT_ALL_SESSION_DATA = 0;
-    private long counterReceive_EVT_SESSION_CREATED = 0;
-    private long counterReceive_EVT_SESSION_EXPIRED = 0;
-    private long counterReceive_EVT_SESSION_ACCESSED = 0;
-    private long counterReceive_EVT_SESSION_DELTA = 0;
-    private int counterReceive_EVT_ALL_SESSION_TRANSFERCOMPLETE = 0;
-    private long counterReceive_EVT_CHANGE_SESSION_ID = 0;
-    private long counterReceive_EVT_ALL_SESSION_NOCONTEXTMANAGER = 0;
-    private long counterSend_EVT_GET_ALL_SESSIONS = 0;
-    private long counterSend_EVT_ALL_SESSION_DATA = 0;
-    private long counterSend_EVT_SESSION_CREATED = 0;
-    private long counterSend_EVT_SESSION_DELTA = 0;
-    private long counterSend_EVT_SESSION_ACCESSED = 0;
-    private long counterSend_EVT_SESSION_EXPIRED = 0;
-    private int counterSend_EVT_ALL_SESSION_TRANSFERCOMPLETE = 0;
-    private long counterSend_EVT_CHANGE_SESSION_ID = 0;
-    private int counterNoStateTransferred = 0;
+    private volatile long sessionReplaceCounter = 0;
+    private volatile long counterReceive_EVT_GET_ALL_SESSIONS = 0;
+    private volatile long counterReceive_EVT_ALL_SESSION_DATA = 0;
+    private volatile long counterReceive_EVT_SESSION_CREATED = 0;
+    private volatile long counterReceive_EVT_SESSION_EXPIRED = 0;
+    private volatile long counterReceive_EVT_SESSION_ACCESSED = 0;
+    private volatile long counterReceive_EVT_SESSION_DELTA = 0;
+    private volatile int counterReceive_EVT_ALL_SESSION_TRANSFERCOMPLETE = 0;
+    private volatile long counterReceive_EVT_CHANGE_SESSION_ID = 0;
+    private volatile long counterReceive_EVT_ALL_SESSION_NOCONTEXTMANAGER = 0;
+    private volatile long counterSend_EVT_GET_ALL_SESSIONS = 0;
+    private volatile long counterSend_EVT_ALL_SESSION_DATA = 0;
+    private volatile long counterSend_EVT_SESSION_CREATED = 0;
+    private volatile long counterSend_EVT_SESSION_DELTA = 0;
+    private volatile long counterSend_EVT_SESSION_ACCESSED = 0;
+    private volatile long counterSend_EVT_SESSION_EXPIRED = 0;
+    private volatile int counterSend_EVT_ALL_SESSION_TRANSFERCOMPLETE = 0;
+    private volatile long counterSend_EVT_CHANGE_SESSION_ID = 0;
+    private volatile int counterNoStateTransferred = 0;
 
 
     // ------------------------------------------------------------- 
Constructor
@@ -244,14 +244,6 @@ public class DeltaManager extends ClusterManagerBase {
         return counterReceive_EVT_ALL_SESSION_NOCONTEXTMANAGER;
     }
 
-    /**
-     * @return Returns the processingTime.
-     */
-    @Override
-    public long getProcessingTime() {
-        return processingTime;
-    }
-
     /**
      * @return Returns the sessionReplaceCounter.
      */


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

Reply via email to