[jboss-jira] [JBoss JIRA] (WFCORE-1541) ModelControllerClientConfiguration.Builder should provide better control over the executor

Brian Stansberry (JIRA) issues at jboss.org
Mon May 9 18:28:00 EDT 2016


Brian Stansberry created WFCORE-1541:
----------------------------------------

             Summary: ModelControllerClientConfiguration.Builder should provide better control over the executor
                 Key: WFCORE-1541
                 URL: https://issues.jboss.org/browse/WFCORE-1541
             Project: WildFly Core
          Issue Type: Enhancement
          Components: Domain Management
            Reporter: Brian Stansberry
            Priority: Minor


The ModelControllerClientConfiguration provides an ExecutorService but the builder does not provide a way to set it. And then the impl has a field to toggle whether the executor is shut down by the close() method, but there is no way to set that field. It always ends up 'true'.

Proposal:

1) Add setters to the builder for both the executor and the shutdown field.
2) Default for the shutdown field depends on whether the executor got set. If the user passes in an executor, then we assume they control its lifecycle. If they don't and the standard one gets used, then closing the config should close the executor. And if the user doesn't like those defaults they can set the flag themselves.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list