Async Manager
Advanced Push/Polling manager for Vaadin Flow
Async Manager for Vaadin Flow
Async Manager is a simple helper that comes to the rescue when you need to do some heavy computation and update views in a deferred manner. It is very easy to use:
AsyncManager.register(this, asyncTask -> {
SomeData result = doHeavyLifting();
asyncTask.push(() -> showData(result));
})
But don't stop here, read the full story.
The following features are implemented:
- Push and polling modes
- Adaptive polling intervals (for example, 5 times per first second, then once per second)
- Automatic worker thread termination when user leaves the view or UI is detached
- Thread pooling
- Support for custom exception handlers (for logging or reporting)
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
- Fix concurrency issue
- Released
- 2020-05-29
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 10+
- Vaadin 11+ in 1.0.0-alpha4
- Browser
- Browser Independent
Async Manager - Vaadin Add-on Directory
Advanced Push/Polling manager for Vaadin FlowSource Code
Discussion Forum
Issue tracker
Async Manager version 1.0.0-alpha1
Initial prerelease
Async Manager version 1.0.0-alpha2
- Added support for setting custom `ExecutorService`
Async Manager version 1.0.0-alpha3
- Fix concurrency issues
Async Manager version 1.0.0-alpha4
- Supply AsyncTask context to exception handler
Async Manager version 1.0.0-beta1
- Handle exceptions in AsyncTask.push
- ComponentUtils.setData instead of static map to track tasks
Async Manager version 1.0.0-beta2
- Added `asyncTask.allowThreadInterrupt` and `asyncTask.preventThreadInterrupt` for more control over thread lifecycle
- Improved exception handling
Async Manager version 1.0.0-rc1
- Improved singleton creation
Async Manager version 1.0.0
- First battle-proven release
Async Manager version 1.1.0-alpha1
- Add support for non-async tasks
Async Manager version 1.1.0
- Fix concurrency issue