接口 SimpUser


  • public interface SimpUser
    Represents a connected user.
    从以下版本开始:
    4.2
    作者:
    Rossen Stoyanchev
    • 方法详细资料

      • hasSessions

        boolean hasSessions()
        Whether the user has any sessions.
      • getSession

        SimpSession getSession​(String sessionId)
        Look up the session for the given id.
        参数:
        sessionId - the session id
        返回:
        the matching session of null.
      • getSessions

        Set<SimpSessiongetSessions()
        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.