From 6486a311e1144aea26e6c068ce72dc5cdbcc0090 Mon Sep 17 00:00:00 2001 From: Darran Lofthouse Date: Wed, 18 Sep 2024 14:52:25 +0100 Subject: [PATCH] [WFCORE-6830] Add a MeasurementUnit of MilliSeconds for no-request-timeout. --- .../management/BaseHttpInterfaceResourceDefinition.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/src/main/java/org/jboss/as/controller/management/BaseHttpInterfaceResourceDefinition.java b/controller/src/main/java/org/jboss/as/controller/management/BaseHttpInterfaceResourceDefinition.java index e580cba896e..071aa4af15e 100644 --- a/controller/src/main/java/org/jboss/as/controller/management/BaseHttpInterfaceResourceDefinition.java +++ b/controller/src/main/java/org/jboss/as/controller/management/BaseHttpInterfaceResourceDefinition.java @@ -38,6 +38,7 @@ import org.jboss.as.controller.StringListAttributeDefinition; import org.jboss.as.controller.access.management.SensitiveTargetAccessConstraintDefinition; import org.jboss.as.controller.capability.RuntimeCapability; +import org.jboss.as.controller.client.helpers.MeasurementUnit; import org.jboss.as.controller.descriptions.ModelDescriptionConstants; import org.jboss.as.controller.operations.validation.ParameterValidator; import org.jboss.as.controller.operations.validation.StringLengthValidator; @@ -191,6 +192,7 @@ public void validateParameter(String parameterName, ModelNode value) throws Oper public static final SimpleAttributeDefinition NO_REQUEST_TIMEOUT = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.NO_REQUEST_TIMEOUT, ModelType.INT, true) .setAllowExpression(true) + .setMeasurementUnit(MeasurementUnit.MILLISECONDS) .setDefaultValue(new ModelNode(60000)) .setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES) .setStability(Stability.COMMUNITY)