Class NonDistributableSessionAffinityProvider

java.lang.Object
org.wildfly.extension.undertow.session.NonDistributableSessionAffinityProvider
All Implemented Interfaces:
SessionAffinityProvider

public class NonDistributableSessionAffinityProvider extends Object implements SessionAffinityProvider
Provider for non-distributable sessions that always have affinity for the same server.
Author:
Paul Ferraro
  • Constructor Details

    • NonDistributableSessionAffinityProvider

      public NonDistributableSessionAffinityProvider(Server server)
  • Method Details

    • getAffinity

      public Optional<String> getAffinity(String sessionId)
      Description copied from interface: SessionAffinityProvider
      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.
      Specified by:
      getAffinity in interface SessionAffinityProvider
      Parameters:
      sessionId - a session identifier
      Returns:
      the identifier of the server for which the session with the specified identifier has affinity, if present.