类 SessionsEndpoint
- java.lang.Object
- org.springframework.boot.actuate.session.SessionsEndpoint
@Endpoint(id="sessions") public class SessionsEndpoint extends Object
Endpointto expose a user'sSessions.- 从以下版本开始:
- 2.0.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSessionsEndpoint.SessionDescriptorA description of user'ssession.static classSessionsEndpoint.SessionsReportA report of user'ssessions.
构造器概要
构造器 构造器 说明 SessionsEndpoint(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository)Create a newSessionsEndpointinstance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddeleteSession(String sessionId)SessionsEndpoint.SessionDescriptorgetSession(String sessionId)SessionsEndpoint.SessionsReportsessionsForUsername(String username)
构造器详细资料
SessionsEndpoint
public SessionsEndpoint(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository)
Create a newSessionsEndpointinstance.- 参数:
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)