mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-10 14:54:46 +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();
|
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.
|
||||||
|
@ -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();
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user