mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-05-24 19:02:01 +00:00
Create SessionsInterface.java
This commit is contained in:
parent
8cb44a40a2
commit
a5fcd2b3d2
@ -0,0 +1,20 @@
|
|||||||
|
package stirling.software.SPDF.config.interfaces;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
|
import stirling.software.SPDF.config.anonymus.session.AnonymusSessionInfo;
|
||||||
|
|
||||||
|
public interface SessionsInterface {
|
||||||
|
|
||||||
|
default boolean isSessionValid(String sessionId) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean isOldestNonExpiredSession(String sessionId);
|
||||||
|
|
||||||
|
void updateSessionLastRequest(String sessionId);
|
||||||
|
|
||||||
|
Collection<AnonymusSessionInfo> getAllSessions();
|
||||||
|
|
||||||
|
Collection<AnonymusSessionInfo> getAllNonExpiredSessions();
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user