Interface SessionTracker
public interface SessionTracker
-
Method Summary
Modifier and TypeMethodDescriptionmapSession(String clusterKey, jakarta.servlet.http.HttpServletRequest request) Retrieves the session ID mapped to the given cluster key, if available.voidsessionCreated(String clusterKey, jakarta.servlet.http.HttpSession session, jakarta.servlet.http.HttpServletRequest request) voidstop()
-
Method Details
-
sessionCreated
void sessionCreated(String clusterKey, jakarta.servlet.http.HttpSession session, jakarta.servlet.http.HttpServletRequest request) -
mapSession
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
Optionalcontaining the session ID associated with the given cluster key, or an emptyOptionalif no mapping exists
-
stop
void stop()
-