Interface SessionTracker


public interface SessionTracker
  • Method Summary

    Modifier and Type
    Method
    Description
    mapSession(String clusterKey, jakarta.servlet.http.HttpServletRequest request)
    Retrieves the session ID mapped to the given cluster key, if available.
    void
    sessionCreated(String clusterKey, jakarta.servlet.http.HttpSession session, jakarta.servlet.http.HttpServletRequest request)
     
    void
     
  • Method Details

    • sessionCreated

      void sessionCreated(String clusterKey, jakarta.servlet.http.HttpSession session, jakarta.servlet.http.HttpServletRequest request)
    • mapSession

      Optional<String> mapSession(String clusterKey, jakarta.servlet.http.HttpServletRequest request)
      Retrieves the session ID mapped to the given cluster key, if available.

      It also

      Parameters:
      clusterKey - the key used to identify a specific cluster in the session context
      Returns:
      an Optional containing the session ID associated with the given cluster key, or an empty Optional if no mapping exists
    • stop

      void stop()