class SessionsDB extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
SessionsDB.ExistingDestException
Exception thrown when attempting to create a session with an existing destination.
|
(package private) static class |
SessionsDB.ExistingIdException
Exception thrown when attempting to create a session with an existing ID.
|
| Constructor and Description |
|---|
SessionsDB() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String nick) |
boolean |
del(String nick) |
SessionRecord |
get(String nick) |
void |
put(String nick,
SessionRecord session) |
void |
putDupDestOK(String nick,
SessionRecord session) |
public boolean containsKey(String nick)
public boolean del(String nick)
public SessionRecord get(String nick)
public void put(String nick, SessionRecord session) throws SessionsDB.ExistingIdException, SessionsDB.ExistingDestException
public void putDupDestOK(String nick, SessionRecord session) throws SessionsDB.ExistingIdException
SessionsDB.ExistingIdException