Class SessionsEndpoint
- java.lang.Object
- org.springframework.boot.actuate.session.SessionsEndpoint
@Endpoint(id="sessions") public class SessionsEndpoint extends Object
Endpointto expose a user'sSessions.- Since:
- 2.0.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSessionsEndpoint.SessionDescriptorA description of user'ssession.static classSessionsEndpoint.SessionsReportA report of user'ssessions.
Constructor Summary
Constructors Constructor Description SessionsEndpoint(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository)Create a newSessionsEndpointinstance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteSession(String sessionId)SessionsEndpoint.SessionDescriptorgetSession(String sessionId)SessionsEndpoint.SessionsReportsessionsForUsername(String username)
Constructor Detail
SessionsEndpoint
public SessionsEndpoint(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository)
Create a newSessionsEndpointinstance.- Parameters:
sessionRepository- the session repository
Method Detail
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)