Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 923 Bytes

File metadata and controls

11 lines (6 loc) · 923 Bytes

Background Data Processor

A lightweight Java utility for single-pass processing of item collections.

Designed to improve application responsiveness with the following key features:

Hybrid Loading: The constructor blocks until the first item in a collection is loaded; then processes the remaining items asynchronously in the background. This allows your application to start working with data immediately.

Thread-Safety: Guarantees safe access in concurrent environments. Calls to retrieve items that are still being processed will block until the data is ready.

Memory-Efficiency: Operates in a single-pass workflow. Once an item is retrieved, its reference is dropped from the internal cache to minimize memory footprint. Retrieving the same item again will trigger a new, synchronous load. If items require multiple uses, references to the items must be maintained externally.