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)
Recordable
record
in interface Recordable<ImmutableSession>
session
- an object to recordpublic Duration getMeanSessionLifetime()
getMeanSessionLifetime
in interface InactiveSessionStatistics
public Duration getMaxSessionLifetime()
getMaxSessionLifetime
in interface InactiveSessionStatistics
public long getExpiredSessionCount()
getExpiredSessionCount
in interface InactiveSessionStatistics
public void reset()
Recordable
reset
in interface Recordable<ImmutableSession>
Copyright © 2016 JBoss by Red Hat. All rights reserved.