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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAffinity(String sessionId) When present, returns the identifier of the server for which the session with the specified identifier has affinity.
-
Constructor Details
-
NonDistributableSessionAffinityProvider
-
-
Method Details
-
getAffinity
Description copied from interface:SessionAffinityProviderWhen 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:
getAffinityin interfaceSessionAffinityProvider- Parameters:
sessionId- a session identifier- Returns:
- the identifier of the server for which the session with the specified identifier has affinity, if present.
-