spring-webflow
spring-webflow copied to clipboard
Add ability to monitor continuation limit overflow [SWF-171]
Alex Antonov opened SWF-171 and commented
Add an ability to somehow to get a visibility into the number of continuations that the ContinuationFlowExecutionRepository has or to find out when that limit is reached. We have some requirements to have monitoring of the cases where the number of continuations reaches the limit, but there is no public getContinuationsCount() method available, nor is it possible to get to the FlowExecutionContinuationGroup, since its getter is protected.
Affects: 1.0 RC4
Issue Links:
- #122 Add the ability to monitor in-progress flow executions with JMX ("depends on")
3 votes, 4 watchers
Jim Gehrett commented
It would be nice if the class that managed the continuations (currently FlowExecutionContinuationGroup) was an interface with the ability to inject our own implementation for a couple of reasons.
- We would be able to easily add monitoring when we have reached the continuation queue limit
- We would be able to use a different algorithm for what continuations get removed when the limit is reached
The current implementation is a FIFO queue. In our case the first couple continuations are the most significant. Removing those has the potential to break our booking process.