public class BTGLocalSessionDao extends Object implements BTGSessionDao
| 构造器和说明 |
|---|
BTGLocalSessionDao() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
active(BTGSession session)
激活session
|
void |
clear()
清空session容器
|
void |
clearTimeout()
清理超时的session
|
void |
deleteSession(String sessionId)
根据session id删除一个session
|
BTGSession |
getSession(String sessionId)
根据session id获取一个session
|
Hashtable<String,BTGSession> |
getSessions()
获取所有session
注意:此api效率较低,不推荐频繁使用
|
void |
refreshSession(BTGSession session)
根据session id刷新一个session
|
void |
saveSession(BTGSession session)
保存一个session
|
public void saveSession(BTGSession session)
BTGSessionDaosaveSession 在接口中 BTGSessionDaosession - BTGSessionpublic void deleteSession(String sessionId)
BTGSessionDaodeleteSession 在接口中 BTGSessionDaosessionId - Stringpublic BTGSession getSession(String sessionId)
BTGSessionDaogetSession 在接口中 BTGSessionDaosessionId - Stringpublic void refreshSession(BTGSession session)
BTGSessionDaorefreshSession 在接口中 BTGSessionDaosession - BTGSessionpublic void active(BTGSession session)
BTGSessionDaoactive 在接口中 BTGSessionDaosession - BTGSessionpublic Hashtable<String,BTGSession> getSessions()
BTGSessionDaogetSessions 在接口中 BTGSessionDaopublic void clearTimeout()
BTGSessionDaoclearTimeout 在接口中 BTGSessionDaopublic void clear()
BTGSessionDaoclear 在接口中 BTGSessionDaoCopyright © 2018. All rights reserved.