Interface ReadSessionAccessor
-
- All Known Subinterfaces:
SessionAccessor
- All Known Implementing Classes:
ThreadLocalSessionAccessor
public interface ReadSessionAccessor- Author:
- Yanyan Liu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetSessionId()Get current session idlonggetTenantId()Get the tenant id
-
-
-
Method Detail
-
getSessionId
long getSessionId() throws SessionIdNotSetExceptionGet current session id- Returns:
- the identifier of current session
- Throws:
SessionIdNotSetException- if no session exists for the given id, throw exception- Since:
- 6.0
-
getTenantId
long getTenantId() throws STenantIdNotSetExceptionGet the tenant id- Returns:
- the identifier of the tenant
- Throws:
STenantIdNotSetException- if no tenant exists for the given id, throw exception- Since:
- 6.0
-
-