WIP add cleanUp method.

This commit is contained in:
dotasek 2024-07-04 11:19:09 -04:00
parent 18840d616f
commit 6c89f0230f
2 changed files with 11 additions and 1 deletions

View File

@ -118,6 +118,11 @@ public class PassiveExpiringSessionCache implements SessionCache {
return cachedSessions.keySet();
}
@Override
public void cleanUp() {
removeExpiredSessions();
}
/**
* Session ids generated internally are UUID {@link String}.
* @return A new {@link String} session id.

View File

@ -43,5 +43,10 @@ public interface SessionCache {
* @return {@link Set} of session ids.
*/
Set<String> getSessionIds();
/**
* Performs any pending maintenance operations needed by the cache.
* */
public void cleanUp();
}