mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 06:14:45 +00:00
WIP add cleanUp method.
This commit is contained in:
parent
18840d616f
commit
6c89f0230f
@ -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.
|
||||
|
@ -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();
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user