public class RecordableInactiveSessionStatistics extends Object implements InactiveSessionStatistics, Recordable<ImmutableSession>
| Constructor and Description |
|---|
RecordableInactiveSessionStatistics() |
| Modifier and Type | Method and Description |
|---|---|
long |
getExpiredSessionCount() |
Duration |
getMaxSessionLifetime() |
Duration |
getMeanSessionLifetime() |
void |
record(ImmutableSession session)
Records the specified object
|
void |
reset()
Resets any previously recorded objects
|
public void record(ImmutableSession session)
Recordablerecord in interface Recordable<ImmutableSession>session - an object to recordpublic Duration getMeanSessionLifetime()
getMeanSessionLifetime in interface InactiveSessionStatisticspublic Duration getMaxSessionLifetime()
getMaxSessionLifetime in interface InactiveSessionStatisticspublic long getExpiredSessionCount()
getExpiredSessionCount in interface InactiveSessionStatisticspublic void reset()
Recordablereset in interface Recordable<ImmutableSession>Copyright © 2023 JBoss by Red Hat. All rights reserved.