Class SessionAlreadyExistsException

All Implemented Interfaces:
Serializable

public class SessionAlreadyExistsException extends IllegalStateException
Thrown by SessionService.create(org.springframework.ai.session.CreateSessionRequest) when a session with the requested id exists; the existing session is left untouched. Two callers that create the same id concurrently get one session and one of these, so the second can read what the first created; SessionService.findOrCreate(org.springframework.ai.session.CreateSessionRequest) does.
Since:
2.1.0
Author:
Christian Tzolov
See Also:
  • Constructor Details

    • SessionAlreadyExistsException

      public SessionAlreadyExistsException(String sessionId)
  • Method Details

    • getSessionId

      public String getSessionId()
      The id of the session that already exists.