Class DataDistributor<D>

java.lang.Object
com.storedobject.core.DataDistributor<D>
Type Parameters:
D - The type of data being distributed.
All Implemented Interfaces:
Closeable, AutoCloseable

public class DataDistributor<D> extends Object implements Closeable
A thread-safe utility class responsible for distributing data to registered consumers at a regular interval. The data is distributed using a background scheduled task. Consumers are notified through their accept method. Any consumer that throws an exception during data distribution is automatically unregistered.
Author:
Syam