Details
-
Task
-
Resolution: Done
-
Major
-
7.1.0.Alpha1
-
None
Description
Allow OperationStepHandlers to register a callback with the OperationContext when calling complete step, instead of waiting for a return value.
public void completeStep(OperationRollbackHandler rollbackHandler);
public interface OperationRollbackHandler {
public void handleOperationRollback();
}
Potentially handleOperationRollback could take the OperationContext and ModelNode as params, although it's tempting to rely on the OSH to cache that. Presumably the typical implementation would be an anonymous inner class.
The point of all this is the OperationContextImpl would track these registered OperationRollbackHandlers and invoke them at the appropriate point on the return path from executing all the steps in the operation. For each OSH that uses this API some recursion would be avoided.
Attachments
Issue Links
- is related to
-
AS7-2069 Jenkins fails due to insufficient stack space
- Resolved