public interface WeiXinSessionManager
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BEAN_NAME
默认的bean配置名称
|
Modifier and Type | Method and Description |
---|---|
void |
addWeiXinSession(WeiXinSession session)
添加会话
|
void |
clear()
清理全部Session
|
WeiXinSession |
createWeiXinSession(String sessionId)
创建会话
|
void |
expireWeiXinSessions()
清理会话过期的Session
|
int |
getExpireTimePeriod()
Session清理线程运行周期,单位s,默认值300
|
int |
getExpireTimerDelay()
Session清理线程首次延迟时间,单位s,默认值60
|
int |
getMaxInactiveInterval()
Session最大过期时间设置,单位s,默认0
|
WeiXinSession |
getWeiXinSession(String sessionId)
查询会话
|
WeiXinSession[] |
getWeiXinSessions()
遍历会话
|
void |
removeWeiXinSession(String sessionId)
手动删除会话
|
static final String DEFAULT_BEAN_NAME
WeiXinSession createWeiXinSession(String sessionId)
sessionId
- WeiXinSession getWeiXinSession(String sessionId)
sessionId
- void addWeiXinSession(WeiXinSession session)
session
- void removeWeiXinSession(String sessionId)
sessionId
- WeiXinSession[] getWeiXinSessions()
void expireWeiXinSessions()
void clear()
int getMaxInactiveInterval()
int getExpireTimerDelay()
int getExpireTimePeriod()
Copyright © 2006–2018 TinyGroup. All rights reserved.