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 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:
      getInactiveSessionRecorder in interface RecordableSessionManagerStatistics
    • record

      public void record(org.wildfly.clustering.session.ImmutableSessionMetaData metaData)
      Description copied from interface: Recordable
      Records the specified object
      Specified by:
      record in interface Recordable<org.wildfly.clustering.session.ImmutableSessionMetaData>
      Parameters:
      metaData - an object to record
    • reset

      public void reset()
      Description copied from interface: Recordable
      Resets any previously recorded objects
      Specified by:
      reset in interface Recordable<org.wildfly.clustering.session.ImmutableSessionMetaData>
    • getCreatedSessionCount

      public long getCreatedSessionCount()
      Specified by:
      getCreatedSessionCount in interface io.undertow.server.session.SessionManagerStatistics
    • getMaxActiveSessions

      public long getMaxActiveSessions()
      Specified by:
      getMaxActiveSessions in interface io.undertow.server.session.SessionManagerStatistics
    • getActiveSessionCount

      public long getActiveSessionCount()
      Specified by:
      getActiveSessionCount in interface io.undertow.server.session.SessionManagerStatistics
    • getExpiredSessionCount

      public long getExpiredSessionCount()
      Specified by:
      getExpiredSessionCount in interface io.undertow.server.session.SessionManagerStatistics
    • getRejectedSessions

      public long getRejectedSessions()
      Specified by:
      getRejectedSessions in interface io.undertow.server.session.SessionManagerStatistics
    • getMaxSessionAliveTime

      public long getMaxSessionAliveTime()
      Specified by:
      getMaxSessionAliveTime in interface io.undertow.server.session.SessionManagerStatistics
    • getAverageSessionAliveTime

      public long getAverageSessionAliveTime()
      Specified by:
      getAverageSessionAliveTime in interface io.undertow.server.session.SessionManagerStatistics
    • getStartTime

      public long getStartTime()
      Specified by:
      getStartTime in interface io.undertow.server.session.SessionManagerStatistics