New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WFLY-1877]: Make KeepAliveTimeAttributeDefinition deal with both a simple long and a complex attribute. #64
Conversation
; | ||
|
||
/** | ||
* The current namespace version. | ||
*/ | ||
public static final Namespace CURRENT = THREADS_1_1; | ||
public static final Namespace CURRENT = THREADS_1_2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2_0
@@ -125,4 +142,56 @@ public void parseAndSetParameter(final ModelNode operation, final XMLExtendedStr | |||
|
|||
operation.get(getName()).set(model); | |||
} | |||
|
|||
private static class UnitConvertor implements ParameterValidator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The org.jboss.as.controller.ParameterCorrector interface is more appropriate for this kind of thing. It can be added to an AttributeDefinition via the setCorrector method on the builder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I'll have to update also he PR for WFLY-1878 which is kind of similar.
…imple long and a complex attribute. Transforming KeepAliveTimeAttributeDefinition in Model from a complex Object to a Long. All keep-alive now are expressed as long in milliseconds. This will affects all subsystems using the "threads" subsystem.
Replaced by #189 |
Prod rebuilds
Use OptionalNameCallback to know when login name is not mandatory
Transforming KeepAliveTimeAttributeDefinition in Model from a complex Object to a Long.
All keep-alive now are expressed as long in milliseconds.
This will affects all subsystems using the "threads" subsystem.
Core Jira: https://issues.jboss.org/browse/WFCORE-39
WildFly Jira: https://issues.jboss.org/browse/WFLY-1877