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(UUID id)
Load a session identified by the given UUID.
|
void |
save(UUID id,
LocalSession session)
Save the given session identified by the given UUID.
|
LocalSession load(UUID id) throws IOException
If the session does not exist (has never been saved), then
a new LocalSession must be returned.
id - the UUIDIOException - thrown on read errorvoid save(UUID id, LocalSession session) throws IOException
id - the UUIDsession - a sessionIOException - thrown on read errorCopyright © 2010-2014. All Rights Reserved.