Interface SessionAffinityProvider

All Known Implementing Classes:
NonDistributableSessionAffinityProvider

public interface SessionAffinityProvider
Determines the server for which a given session has affinity. TODO Relocate this to Undertow SPI module
Author:
Radoslav Husar
  • Method Summary

    Modifier and Type
    Method
    Description
    getAffinity(String sessionId)
    When present, returns the identifier of the server for which the session with the specified identifier has affinity.
  • Method Details

    • getAffinity

      Optional<String> getAffinity(String sessionId)
      When present, returns the identifier of the server for which the session with the specified identifier has affinity. When absent, the session does not have affinity for any specific server.
      Parameters:
      sessionId - a session identifier
      Returns:
      the identifier of the server for which the session with the specified identifier has affinity, if present.