Package io.fluxcapacitor.common
Class Backlog<T>
java.lang.Object
io.fluxcapacitor.common.Backlog<T>
public class Backlog<T> extends Object implements Monitored<List<T>>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBacklog.BatchConsumer<T> -
Constructor Summary
Constructors Constructor Description Backlog(Backlog.BatchConsumer<T> consumer)Backlog(Backlog.BatchConsumer<T> consumer, int maxBatchSize)Backlog(Backlog.BatchConsumer<T> consumer, int maxBatchSize, int threads, ErrorHandler<List<T>> errorHandler) -
Method Summary
Modifier and Type Method Description Awaitableadd(Collection<? extends T> values)Awaitableadd(T... values)RegistrationregisterMonitor(Consumer<List<T>> monitor)voidshutDown()
-
Constructor Details
-
Backlog
-
Backlog
-
Backlog
public Backlog(Backlog.BatchConsumer<T> consumer, int maxBatchSize, int threads, ErrorHandler<List<T>> errorHandler)
-
-
Method Details
-
add
-
add
-
registerMonitor
- Specified by:
registerMonitorin interfaceMonitored<T>
-
shutDown
public void shutDown()
-