[jboss-jira] [JBoss JIRA] (WFCORE-4949) Expose the original task in RequestController.QueuedTask
Cheng Fang (Jira)
issues at jboss.org
Tue Apr 28 23:29:00 EDT 2020
[ https://issues.redhat.com/browse/WFCORE-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheng Fang updated WFCORE-4949:
-------------------------------
Description:
org.wildfly.extension.requestcontroller.RequestController.QueuedTask runRequest() method wraps the original task as a new Runnable, and pass it back to the caller's {{Executor}} for execution.
In some cases, the original task has more state and behavior than a pure Runnable. When the new temporary Runnable is passed back to the caller's {{Executor}}, these additional features are no longer available. So we need a way to expose/unwrap the original task to the caller so that the caller's {{Executor}} can work properly.
See https://github.com/wildfly/wildfly-core/blob/master/request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java#L486
was:
org.wildfly.extension.requestcontroller.RequestController.QueuedTask runRequest() method wraps the original task as a new Runnable, and pass it back to the caller's {{Executor}} for execution.
In some cases, the original task has more state and behavior than a pure Runnable. When the new temporary Runnable is passed back to the caller's {{Executor}}, these additional features are no longer available.
See https://github.com/wildfly/wildfly-core/blob/master/request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java#L486
> Expose the original task in RequestController.QueuedTask
> --------------------------------------------------------
>
> Key: WFCORE-4949
> URL: https://issues.redhat.com/browse/WFCORE-4949
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 12.0.0.Beta1
> Reporter: Cheng Fang
> Assignee: Cheng Fang
> Priority: Major
>
> org.wildfly.extension.requestcontroller.RequestController.QueuedTask runRequest() method wraps the original task as a new Runnable, and pass it back to the caller's {{Executor}} for execution.
> In some cases, the original task has more state and behavior than a pure Runnable. When the new temporary Runnable is passed back to the caller's {{Executor}}, these additional features are no longer available. So we need a way to expose/unwrap the original task to the caller so that the caller's {{Executor}} can work properly.
> See https://github.com/wildfly/wildfly-core/blob/master/request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java#L486
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list