public interface SessionStore
Both load(UUID)
and save(UUID, LocalSession)
may be
called at the same in different threads, so implementations should
be aware of this issue.
Modifier and Type | Method and Description |
---|---|
LocalSession |
load(java.util.UUID id)
Load a session identified by the given UUID.
|
void |
save(java.util.UUID id,
LocalSession session)
Save the given session identified by the given UUID.
|
LocalSession load(java.util.UUID id) throws java.io.IOException
If the session does not exist (has never been saved), then
a new LocalSession
must be returned.
id
- the UUIDjava.io.IOException
- thrown on read errorvoid save(java.util.UUID id, LocalSession session) throws java.io.IOException
id
- the UUIDsession
- a sessionjava.io.IOException
- thrown on read error