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