接口 SimpUser
public interface SimpUser
Represents a connected user.- 从以下版本开始:
- 4.2
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String
getName()
The unique user name.SimpSession
getSession(String sessionId)
Look up the session for the given id.Set<SimpSession>
getSessions()
Return the sessions for the user.boolean
hasSessions()
Whether the user has any sessions.
方法详细资料
hasSessions
boolean hasSessions()
Whether the user has any sessions.
getSession
@Nullable SimpSession getSession(String sessionId)
Look up the session for the given id.- 参数:
sessionId
- the session id- 返回:
- the matching session, or
null
if none found
getSessions
Set<SimpSession> getSessions()
Return the sessions for the user. The returned set is a copy and will never be modified.- 返回:
- a set of session ids, or an empty set if none