<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright The WildFly Authors
  ~ SPDX-License-Identifier: Apache-2.0
  -->

<feature-group-spec name="ee-concurrency" xmlns="urn:jboss:galleon:feature-group:1.0">
    <feature spec="subsystem.ee">
        <feature spec="subsystem.ee.context-service">
            <param name="context-service" value="default"/>
            <param name="jndi-name" value="java:jboss/ee/concurrency/context/default"/>
        </feature>
        <feature spec="subsystem.ee.managed-executor-service">
            <param name="managed-executor-service" value="default"/>
            <param name="context-service" value="default"/>
            <param name="jndi-name" value="java:jboss/ee/concurrency/executor/default"/>
            <param name="hung-task-termination-period" value="0"/>
            <param name="hung-task-threshold" value="60000"/>
            <param name="keepalive-time" value="5000"/>
        </feature>
        <feature spec="subsystem.ee.managed-scheduled-executor-service">
            <param name="managed-scheduled-executor-service" value="default"/>
            <param name="context-service" value="default"/>
            <param name="jndi-name" value="java:jboss/ee/concurrency/scheduler/default"/>
            <param name="hung-task-termination-period" value="0"/>
            <param name="hung-task-threshold" value="60000"/>
            <param name="keepalive-time" value="3000"/>
        </feature>
        <feature spec="subsystem.ee.managed-thread-factory">
            <param name="managed-thread-factory" value="default"/>
            <param name="context-service" value="default"/>
            <param name="jndi-name" value="java:jboss/ee/concurrency/factory/default"/>
        </feature>
        <feature spec="subsystem.ee.service.default-bindings">
            <param name="context-service" value="java:jboss/ee/concurrency/context/default"/>
            <param name="managed-executor-service" value="java:jboss/ee/concurrency/executor/default"/>
            <param name="managed-scheduled-executor-service" value="java:jboss/ee/concurrency/scheduler/default"/>
            <param name="managed-thread-factory" value="java:jboss/ee/concurrency/factory/default"/>
        </feature>
    </feature>
</feature-group-spec>
