Class 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.- Since:
- 2.0.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SessionsEndpoint.SessionDescriptor
A description of user'ssession
.static class
SessionsEndpoint.SessionsReport
A report of user'ssessions
.
Constructor Summary
Constructors Constructor Description SessionsEndpoint(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository)
Create a newSessionsEndpoint
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteSession(String sessionId)
SessionsEndpoint.SessionDescriptor
getSession(String sessionId)
SessionsEndpoint.SessionsReport
sessionsForUsername(String username)
Constructor Detail
SessionsEndpoint
public SessionsEndpoint(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository)
Create a newSessionsEndpoint
instance.- 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)