org.wildfly.clustering.web.session.InactiveSessionStatistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-web-spi Show documentation
Show all versions of wildfly-clustering-web-spi Show documentation
A set of SPIs for implementing a container-independent distributable HTTP session manager and single sign-on manager for use by a servlet container.
The newest version!
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.web.session;
import java.time.Duration;
/**
* Statistics for inactive sessions.
* @author Paul Ferraro
*/
public interface InactiveSessionStatistics {
/**
* @return The number of expired sessions
*/
long getExpiredSessionCount();
/**
* @return The longest a session has been alive, as a time duration
*/
Duration getMaxSessionLifetime();
/**
* @return The average session lifetime, as a time duration
*/
Duration getMeanSessionLifetime();
}