| 程序包 | 说明 |
|---|---|
| com.jn.langx.distributed.session | |
| com.jn.langx.distributed.session.impl |
| 限定符和类型 | 方法和说明 |
|---|---|
Session |
SessionFactory.get(SessionContext ctx) |
Session |
SessionRepository.getById(String id) |
Session |
SessionManager.getSession(SessionContext context)
基于context获取session,若存在则获取,若不存在则创建
|
Session |
SessionManager.getSession(String id) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SessionRepository.add(Session entity) |
void |
SessionManager.invalidate(Session session) |
void |
SessionRepository.update(Session entity) |
| 构造器和说明 |
|---|
SessionEvent(String eventDomain,
SessionEvent.SessionEventType eventType,
Session session) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
SimpleSession |
| 限定符和类型 | 方法和说明 |
|---|---|
Session |
SimpleSessionFactory.get(SessionContext ctx) |
Session |
LocalSessionRepository.getById(String id) |
Session |
CachedSessionRepository.getById(String id) |
Session |
DefaultSessionManager.getSession(SessionContext context) |
Session |
DefaultSessionManager.getSession(String sessionId) |
| 限定符和类型 | 方法和说明 |
|---|---|
Cache<String,Session> |
CachedSessionRepository.getCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
LocalSessionRepository.add(Session entity) |
void |
CachedSessionRepository.add(Session session) |
void |
DefaultSessionManager.invalidate(Session session) |
void |
LocalSessionRepository.update(Session entity) |
void |
CachedSessionRepository.update(Session session) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CachedSessionRepository.setCache(Cache<String,Session> cache) |
Copyright © 2021. All rights reserved.