Open javier-godoy opened 4 weeks ago
The recent updates introduce callback mechanisms to the ConcurrentStreamResourceWriter
class, enhancing its handling of concurrent downloads through new abstract methods and state management with an AtomicBoolean
. The GridExporter
class is expanded with additional features for exporting documents, including new classes and methods to manage export streams. These changes improve the robustness and flexibility of document export functionality.
Files | Change Summary |
---|---|
src/main/java/com/flowingcode/vaadin/addons/gridexporter/ConcurrentStreamResourceWriter.java |
Introduced an AtomicBoolean field for download state, and added abstract methods onAccept() , onFinish() , and onTimeout() for handling callbacks during the download process. |
src/main/java/com/flowingcode/vaadin/addons/gridexporter/GridExporter.java |
Added new imports, modified method signatures for document export resources, and introduced new classes (GridExporterStreamResource , GridExporterConcurrentStreamResourceWriter ) to manage export streams. |
src/test/java/com/flowingcode/vaadin/addons/gridexporter/test/ConcurrentExportTests.java |
Added boolean fields (accepted , finished , interruptedByTimeout ) and new methods (onAccept() , onFinish() ) to handle events in the ConcurrentStreamResourceWriter class. |
sequenceDiagram
participant U as User
participant G as GridExporter
participant C as ConcurrentStreamResourceWriter
participant D as Document
U->>G: Request document export
G->>C: Initialize export process
C->>D: Generate document stream
D-->>C: Return document stream
C->>C: onAccept() callback
C->>U: Provide document stream
U->>C: Acknowledge download completion
C->>C: onFinish() callback
In the world of code so bright,
New features come to light.
With streams that flow and callbacks that show,
Exports now with a smoother glow.
GridExporter stands tall and neat,
Making downloads quite the treat.
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
@coderabbitai review
126
Summary by CodeRabbit
New Features
Tests