会话(Session)密钥(Key)

data class SessionKey(val appName: String, val userId: String, val id: String?)

Composite identifier for a Session.

构造函数(Constructors)

Link copied to clipboard
constructor(appName: String, userId: String, id: String?)

属性(Properties)

Link copied to clipboard

拥有该会话的应用程序的名称。

Link copied to clipboard
val id: String?

该会话标识符是唯一的,用于在系统内部识别特定的用户会话。 (appName, userId) `namespace`:可以(即该字段是可选的,可以存在,也可以不存在)。 null 当被传递给……时 SessionService.createSession 用于请求该服务生成一个新的会话(session)。这些方法是用于处理已存在的会话(session)的。SessionService.getSession, SessionService.deleteSession, SessionService.listEvents, SessionService.flush) 需要一个非空值(non-null value) id.

Link copied to clipboard

该会话所属的最终用户的标识符。