Class DistributableSessionManagerStatistics
java.lang.Object
org.wildfly.clustering.web.undertow.session.DistributableSessionManagerStatistics
- All Implemented Interfaces:
io.undertow.server.session.SessionManagerStatistics,Recordable<org.wildfly.clustering.session.ImmutableSessionMetaData>,RecordableSessionManagerStatistics
public class DistributableSessionManagerStatistics
extends Object
implements RecordableSessionManagerStatistics
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDistributableSessionManagerStatistics(org.wildfly.clustering.session.SessionStatistics activeSessionStatistics, RecordableInactiveSessionStatistics inactiveSessionStatistics, OptionalInt maxActiveSessions) -
Method Summary
Modifier and TypeMethodDescriptionlonglonglonglongRecordable<org.wildfly.clustering.session.ImmutableSessionMetaData>longlonglonglongvoidrecord(org.wildfly.clustering.session.ImmutableSessionMetaData metaData) Records the specified objectvoidreset()Resets any previously recorded objectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.undertow.server.session.SessionManagerStatistics
getHighestSessionCount
-
Constructor Details
-
DistributableSessionManagerStatistics
public DistributableSessionManagerStatistics(org.wildfly.clustering.session.SessionStatistics activeSessionStatistics, RecordableInactiveSessionStatistics inactiveSessionStatistics, OptionalInt maxActiveSessions)
-
-
Method Details
-
getInactiveSessionRecorder
public Recordable<org.wildfly.clustering.session.ImmutableSessionMetaData> getInactiveSessionRecorder()- Specified by:
getInactiveSessionRecorderin interfaceRecordableSessionManagerStatistics
-
record
public void record(org.wildfly.clustering.session.ImmutableSessionMetaData metaData) Description copied from interface:RecordableRecords the specified object- Specified by:
recordin interfaceRecordable<org.wildfly.clustering.session.ImmutableSessionMetaData>- Parameters:
metaData- an object to record
-
reset
public void reset()Description copied from interface:RecordableResets any previously recorded objects- Specified by:
resetin interfaceRecordable<org.wildfly.clustering.session.ImmutableSessionMetaData>
-
getCreatedSessionCount
public long getCreatedSessionCount()- Specified by:
getCreatedSessionCountin interfaceio.undertow.server.session.SessionManagerStatistics
-
getMaxActiveSessions
public long getMaxActiveSessions()- Specified by:
getMaxActiveSessionsin interfaceio.undertow.server.session.SessionManagerStatistics
-
getActiveSessionCount
public long getActiveSessionCount()- Specified by:
getActiveSessionCountin interfaceio.undertow.server.session.SessionManagerStatistics
-
getExpiredSessionCount
public long getExpiredSessionCount()- Specified by:
getExpiredSessionCountin interfaceio.undertow.server.session.SessionManagerStatistics
-
getRejectedSessions
public long getRejectedSessions()- Specified by:
getRejectedSessionsin interfaceio.undertow.server.session.SessionManagerStatistics
-
getMaxSessionAliveTime
public long getMaxSessionAliveTime()- Specified by:
getMaxSessionAliveTimein interfaceio.undertow.server.session.SessionManagerStatistics
-
getAverageSessionAliveTime
public long getAverageSessionAliveTime()- Specified by:
getAverageSessionAliveTimein interfaceio.undertow.server.session.SessionManagerStatistics
-
getStartTime
public long getStartTime()- Specified by:
getStartTimein interfaceio.undertow.server.session.SessionManagerStatistics
-