T - item typepublic interface Accumulator<T>
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(T item)
Adds an item to the current batch. 
 | 
boolean | 
isReady()
Indicates whether the accumulator is ready to process items. 
 | 
void | 
processItems(List<T> items)
Processes the specified list of accumulated items. 
 | 
void add(T item)
item - item to be added to the current batchvoid processItems(List<T> items)
items - list of accumulated itemsboolean isReady()