Interface StickinessConfiguration.Builder

  • Method Details

    • identifier

      StickinessConfiguration.Builder identifier(String identifier)

      The expression that identifies where to extract the session identifier from the request (for example, $context.header.x-session-id).

      Parameters:
      identifier - The expression that identifies where to extract the session identifier from the request (for example, $context.header.x-session-id).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeout

      The session stickiness timeout, in seconds. After this duration of inactivity, the session affinity expires. Valid values range from 1 to 86400.

      Parameters:
      timeout - The session stickiness timeout, in seconds. After this duration of inactivity, the session affinity expires. Valid values range from 1 to 86400.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • compositeIdentifier

      StickinessConfiguration.Builder compositeIdentifier(Collection<String> compositeIdentifier)

      Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.

      Parameters:
      compositeIdentifier - Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • compositeIdentifier

      StickinessConfiguration.Builder compositeIdentifier(String... compositeIdentifier)

      Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.

      Parameters:
      compositeIdentifier - Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.
      Returns:
      Returns a reference to this object so that method calls can be chained together.