This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 29aaefd294 Make stats volatile 29aaefd294 is described below commit 29aaefd2944d6ec50505c21d6fd0346a71360388 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 b8f29d2789..f13f84c63c 100644 --- a/java/org/apache/catalina/ha/session/DeltaManager.java +++ b/java/org/apache/catalina/ha/session/DeltaManager.java @@ -92,25 +92,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 @@ -250,14 +250,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