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(); return cachedSessions.keySet();
} }
@Override
public void cleanUp() {
removeExpiredSessions();
}
/** /**
* Session ids generated internally are UUID {@link String}. * Session ids generated internally are UUID {@link String}.
* @return A new {@link String} session id. * @return A new {@link String} session id.

View File

@ -44,4 +44,9 @@ public interface SessionCache {
*/ */
Set<String> getSessionIds(); Set<String> getSessionIds();
/**
* Performs any pending maintenance operations needed by the cache.
* */
public void cleanUp();
} }