Package net.i2p.sam
Class SessionsDB
java.lang.Object
net.i2p.sam.SessionsDB
class SessionsDB extends Object
basically a HashMap from String to SessionRecord
- Since:
- 0.9.25 moved from SAMv3Handler
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SessionsDB.ExistingDestException
(package private) static class
SessionsDB.ExistingIdException
-
Constructor Summary
Constructors Constructor Description SessionsDB()
-
Method Summary
Modifier and Type Method 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)
-
Constructor Details
-
SessionsDB
public SessionsDB()
-
-
Method Details
-
put
public void put(String nick, SessionRecord session) throws SessionsDB.ExistingIdException, SessionsDB.ExistingDestException -
putDupDestOK
- Throws:
SessionsDB.ExistingIdException
- Since:
- 0.9.25
-
del
- Returns:
- true if removed
-
get
-
containsKey
-