Class RecordableInactiveSessionStatistics

  • All Implemented Interfaces:
    org.wildfly.clustering.ee.Recordable<org.wildfly.clustering.web.session.ImmutableSessionMetaData>, org.wildfly.clustering.web.session.InactiveSessionStatistics

    public class RecordableInactiveSessionStatistics
    extends Object
    implements org.wildfly.clustering.web.session.InactiveSessionStatistics, org.wildfly.clustering.ee.Recordable<org.wildfly.clustering.web.session.ImmutableSessionMetaData>
    Records statistics for inactive sessions.
    Author:
    Paul Ferraro
    • Constructor Detail

      • RecordableInactiveSessionStatistics

        public RecordableInactiveSessionStatistics()
    • Method Detail

      • record

        public void record​(org.wildfly.clustering.web.session.ImmutableSessionMetaData metaData)
        Specified by:
        record in interface org.wildfly.clustering.ee.Recordable<org.wildfly.clustering.web.session.ImmutableSessionMetaData>
      • getMeanSessionLifetime

        public Duration getMeanSessionLifetime()
        Specified by:
        getMeanSessionLifetime in interface org.wildfly.clustering.web.session.InactiveSessionStatistics
      • getMaxSessionLifetime

        public Duration getMaxSessionLifetime()
        Specified by:
        getMaxSessionLifetime in interface org.wildfly.clustering.web.session.InactiveSessionStatistics
      • getExpiredSessionCount

        public long getExpiredSessionCount()
        Specified by:
        getExpiredSessionCount in interface org.wildfly.clustering.web.session.InactiveSessionStatistics
      • reset

        public void reset()
        Specified by:
        reset in interface org.wildfly.clustering.ee.Recordable<org.wildfly.clustering.web.session.ImmutableSessionMetaData>