Class BatchCollector<T>
java.lang.Object
org.alfresco.heartbeat.datasender.internal.stream.BatchCollector<T>
- Type Parameters:
T- Type of the elements being collected
Collects elements in the stream and calls the supplied batch processor after the configured batch size is reached.
In case of a parallel stream, the batch processor may be called with elements less than the batch size.
The final result is an empty list.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics -
Method Summary
-
Method Details
-
supplier
-
accumulator
-
combiner
-
finisher
-
characteristics
-