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
All Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
put
public void put(String nick, SessionRecord session) throws SessionsDB.ExistingIdException, SessionsDB.ExistingDestException
-
putDupDestOK
public void putDupDestOK(String nick, SessionRecord session) throws SessionsDB.ExistingIdException
- Throws:
SessionsDB.ExistingIdException
- Since:
- 0.9.25
-
del
public boolean del(String nick)
- Returns:
- true if removed
-
get
public SessionRecord get(String nick)
-
containsKey
public boolean containsKey(String nick)
-
-