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 classSessionsDB.ExistingDestException(package private) static classSessionsDB.ExistingIdException
-
Constructor Summary
Constructors Constructor Description SessionsDB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(String nick)booleandel(String nick)SessionRecordget(String nick)voidput(String nick, SessionRecord session)voidputDupDestOK(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)
-
-