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 sessiontrue
if the session was successfully deletedCompletableFuture<S> save(S session)
session
- The session to save