Skip to content

Commit

Permalink
[WFCORE-6830] Add a MeasurementUnit of MilliSeconds for no-request-ti…
Browse files Browse the repository at this point in the history
…meout.
  • Loading branch information
darranl committed Sep 18, 2024
1 parent 8d4c67f commit 6486a31
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6486a31

Please sign in to comment.