类 SessionsEndpoint
- java.lang.Object
- org.springframework.boot.actuate.session.SessionsEndpoint
@Endpoint(id="sessions") public class SessionsEndpoint extends Object
Endpoint
to expose a user'sSession
s.- 从以下版本开始:
- 2.0.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
SessionsEndpoint.SessionDescriptor
A description of user'ssession
.static class
SessionsEndpoint.SessionsReport
A report of user'ssessions
.
构造器概要
构造器 构造器 说明 SessionsEndpoint(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository)
Create a newSessionsEndpoint
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
deleteSession(String sessionId)
SessionsEndpoint.SessionDescriptor
getSession(String sessionId)
SessionsEndpoint.SessionsReport
sessionsForUsername(String username)
构造器详细资料
SessionsEndpoint
public SessionsEndpoint(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository)
Create a newSessionsEndpoint
instance.- 参数:
sessionRepository
- the session repository
方法详细资料
sessionsForUsername
@ReadOperation public SessionsEndpoint.SessionsReport sessionsForUsername(String username)
getSession
@ReadOperation public SessionsEndpoint.SessionDescriptor getSession(@Selector String sessionId)
deleteSession
@DeleteOperation public void deleteSession(@Selector String sessionId)