LearnerSessionTracker.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:SecureKeeper 作者:
public void setOwner(long sessionId, Object owner)
        throws SessionExpiredException {
    if (localSessionTracker != null) {
        try {
            localSessionTracker.setOwner(sessionId, owner);
            return;
        } catch (SessionExpiredException e) {
            // Check whether it's a global session. We can ignore those
            // because they are handled at the leader, but if not, rethrow.
            // We check local session status first to avoid race condition
            // with session upgrading.
            if (!isGlobalSession(sessionId)) {
                throw e;
            }
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号