S - The sessionpublic interface SessionStore<S extends Session>
Interface for locating and saving sessions.
| Modifier and Type | Method and Description | 
|---|---|
CompletableFuture<Boolean> | 
deleteSession(String id)
Delete a session for the given ID. 
 | 
CompletableFuture<Optional<S>> | 
findSession(String id)
Find a session for the given ID. 
 | 
S | 
newSession()
Create a new unsaved session. 
 | 
CompletableFuture<S> | 
save(S session)
Save the given session. 
 | 
S newSession()
CompletableFuture<Optional<S>> findSession(String id)
id - The ID of the sessionOptional sessionCompletableFuture<Boolean> deleteSession(String id)
id - The ID of the sessionCompletableFuture<S> save(S session)
session - The session to save