## Provided Capabilities (1)

Name | Dynamic | Other provider points
--- | --- | ---
org.wildfly.ee.concurrent.thread-factory | true | none

## Attributes (3)

- context-service - The name of the context service to be used by the managed thread factory

  Type | STRING
  Is the attribute nillable? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | resource-services
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "STRING"
          },
          "description" : "The name of the context service to be used by the managed thread factory",
          "expressions-allowed" : false,
          "required" : false,
          "nillable" : true,
          "capability-reference" : "org.wildfly.ee.concurrent.context.service",
          "min-length" : 0,
          "max-length" : 2147483647,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "resource-services"
      }

- jndi-name - The JNDI Name to lookup the managed thread factory.

  Type | STRING
  Does the attribute allow expression? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | resource-services
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "STRING"
          },
          "description" : "The JNDI Name to lookup the managed thread factory.",
          "expressions-allowed" : true,
          "required" : true,
          "nillable" : false,
          "min-length" : 1,
          "max-length" : 2147483647,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "resource-services",
          "capability-reference" : null
      }

- priority - The priority applied to threads created by the factory

  Type | INT
  Default Value | 5
  Is the attribute nillable? | true
  Does the attribute allow expression? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | resource-services
  Min | 1
  Max | 10
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "INT"
          },
          "description" : "The priority applied to threads created by the factory",
          "expressions-allowed" : true,
          "required" : false,
          "nillable" : true,
          "default" : 5,
          "min" : 1,
          "max" : 10,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "resource-services",
          "capability-reference" : null
      }

## Operations (2)

- add - Adds the managed thread factory

  Request Parameter | Type | Required | Expressions Allowed | Default value | Description
  --- | --- | --- | --- | --- | ---
  context-service | STRING | false | false |  | The name of the context service to be used by the managed thread factory
  jndi-name | STRING | true | true |  | The JNDI Name to lookup the managed thread factory.
  priority | INT | false | true | 5 | The priority applied to threads created by the factory

  Raw DMR model |
      {
          "operation-name" : "add",
          "description" : "Adds the managed thread factory",
          "request-properties" : {
              "context-service" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "STRING"
                  },
                  "description" : "The name of the context service to be used by the managed thread factory",
                  "expressions-allowed" : false,
                  "required" : false,
                  "nillable" : true,
                  "capability-reference" : "org.wildfly.ee.concurrent.context.service",
                  "min-length" : 0,
                  "max-length" : 2147483647,
                  "stability" : "default"
              },
              "jndi-name" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "STRING"
                  },
                  "description" : "The JNDI Name to lookup the managed thread factory.",
                  "expressions-allowed" : true,
                  "required" : true,
                  "nillable" : false,
                  "min-length" : 1,
                  "max-length" : 2147483647,
                  "stability" : "default"
              },
              "priority" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "INT"
                  },
                  "description" : "The priority applied to threads created by the factory",
                  "expressions-allowed" : true,
                  "required" : false,
                  "nillable" : true,
                  "default" : 5,
                  "min" : 1,
                  "max" : 10,
                  "stability" : "default"
              }
          },
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "runtime-only" : false
      }

- remove - Removes the managed thread factory

  Raw DMR model |
      {
          "operation-name" : "remove",
          "description" : "Removes the managed thread factory",
          "request-properties" : {},
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "restart-required" : "all-services",
          "runtime-only" : false
      }

## Galleon Features

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

- subsystem.ee.managed-thread-factory

      <feature spec="subsystem.ee.managed-thread-factory">
        <param name="managed-thread-factory" value="{resource name}"/>
        <param name="context-service" value="{value}"/>
        <param name="jndi-name" value="{value}"/>
        <param name="priority" value="{value}"/>
      <feature/>