Class DistributableInactiveSessionStatistics
java.lang.Object
org.wildfly.clustering.web.undertow.session.DistributableInactiveSessionStatistics
- All Implemented Interfaces:
InactiveSessionStatistics,Recordable<org.wildfly.clustering.session.ImmutableSessionMetaData>,RecordableInactiveSessionStatistics
public class DistributableInactiveSessionStatistics
extends Object
implements RecordableInactiveSessionStatistics
Records statistics for inactive sessions.
- Author:
- Paul Ferraro
-
Constructor Details
-
DistributableInactiveSessionStatistics
public DistributableInactiveSessionStatistics()
-
-
Method Details
-
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
-
getMeanSessionLifetime
- Specified by:
getMeanSessionLifetimein interfaceInactiveSessionStatistics- Returns:
- The average session lifetime, as a time duration
-
getMaxSessionLifetime
- Specified by:
getMaxSessionLifetimein interfaceInactiveSessionStatistics- Returns:
- The longest a session has been alive, as a time duration
-
getExpiredSessionCount
public long getExpiredSessionCount()- Specified by:
getExpiredSessionCountin interfaceInactiveSessionStatistics- Returns:
- The number of expired sessions
-
reset
public void reset()Description copied from interface:RecordableResets any previously recorded objects- Specified by:
resetin interfaceRecordable<org.wildfly.clustering.session.ImmutableSessionMetaData>
-