diff --git a/authentication/source/java/ch/systemsx/cisd/authentication/DefaultSessionManager.java b/authentication/source/java/ch/systemsx/cisd/authentication/DefaultSessionManager.java index 533bbf864281151b6b30b038b5edd7dabbd57f67..a381b93d04cf4b4c04163f08bfea0904aae25328 100644 --- a/authentication/source/java/ch/systemsx/cisd/authentication/DefaultSessionManager.java +++ b/authentication/source/java/ch/systemsx/cisd/authentication/DefaultSessionManager.java @@ -262,13 +262,16 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa final long lastNotification = 0; + /** + * The delay beetween sending two notifications (in miliseconds) + */ final int notificationDelayPeriod; final int sessionNotifyThreshold; - public SessionMonitor(int sessionNotifyThreshold, int notificationDelayPeriod) + public SessionMonitor(int sessionNotifyThreshold, int notificationDelayPeriodInSeconds) { - this.notificationDelayPeriod = notificationDelayPeriod; + this.notificationDelayPeriod = notificationDelayPeriodInSeconds * 1000; this.sessionNotifyThreshold = sessionNotifyThreshold; if (sessionNotifyThreshold <= 0)