## Provided Capabilities (1)

Name | Dynamic | Other provider points
--- | --- | ---
org.wildfly.clustering.web.session-affinity | true | /subsystem=distributable-web/infinispan-session-management=*/affinity=none /subsystem=distributable-web/infinispan-session-management=*/affinity=local /subsystem=distributable-web/infinispan-session-management=*/affinity=primary-owner /subsystem=distributable-web/hotrod-session-management=*/affinity=none /subsystem=distributable-web/hotrod-session-management=*/affinity=local

## Attributes (2)

- delimiter - The delimiter used to separate the individual routes within the encoded session identifier

  Type | STRING
  Default Value | .
  Is the attribute nillable? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | no-services
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "STRING"
          },
          "description" : "The delimiter used to separate the individual routes within the encoded session identifier",
          "expressions-allowed" : false,
          "required" : false,
          "nillable" : true,
          "default" : ".",
          "min-length" : 1,
          "max-length" : 2147483647,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "no-services",
          "capability-reference" : null
      }

- max-routes - The maximum number of routes to encode into the session identifier

  Type | STRING
  Default Value | 3
  Is the attribute nillable? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | no-services
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "STRING"
          },
          "description" : "The maximum number of routes to encode into the session identifier",
          "expressions-allowed" : false,
          "required" : false,
          "nillable" : true,
          "default" : 3,
          "min-length" : 1,
          "max-length" : 2147483647,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "no-services",
          "capability-reference" : null
      }

## Operations (2)

- add - Adds an affinity configuration

  Request Parameter | Type | Required | Expressions Allowed | Default value | Description
  --- | --- | --- | --- | --- | ---
  delimiter | STRING | false | false | . | The delimiter used to separate the individual routes within the encoded session identifier
  max-routes | STRING | false | false | 3 | The maximum number of routes to encode into the session identifier

  Raw DMR model |
      {
          "operation-name" : "add",
          "description" : "Adds an affinity configuration",
          "request-properties" : {
              "delimiter" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "STRING"
                  },
                  "description" : "The delimiter used to separate the individual routes within the encoded session identifier",
                  "expressions-allowed" : false,
                  "required" : false,
                  "nillable" : true,
                  "default" : ".",
                  "min-length" : 1,
                  "max-length" : 2147483647,
                  "stability" : "default"
              },
              "max-routes" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "STRING"
                  },
                  "description" : "The maximum number of routes to encode into the session identifier",
                  "expressions-allowed" : false,
                  "required" : false,
                  "nillable" : true,
                  "default" : 3,
                  "min-length" : 1,
                  "max-length" : 2147483647,
                  "stability" : "default"
              }
          },
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "runtime-only" : false
      }

- remove - Removes an affinity configuration

  Raw DMR model |
      {
          "operation-name" : "remove",
          "description" : "Removes an affinity configuration",
          "request-properties" : {},
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "restart-required" : "resource-services",
          "runtime-only" : false
      }

## Galleon Features

Galleon features are to be used when creating Galleon feature-packs.

- subsystem.distributable-web.infinispan-session-management.affinity.ranked

      <feature spec="subsystem.distributable-web.infinispan-session-management.affinity.ranked">
        <param name="infinispan-session-management" value="{resource name}"/>
        <param name="delimiter" value="{value}"/>
        <param name="max-routes" value="{value}"/>
      <feature/>