T
- type being collectedpublic abstract class Collector<T> extends Function<List<T>>
There are two locks used: one (the object itself) must be used whenever one is either calculating the function or preparing the inputs for the function. The other (the buffer) is used whenever the buffer is modified. The idea is that the new calculation may not block the scanning and reading of the values in the buffer.
Constructor and Description |
---|
Collector() |
Copyright © 2012. All Rights Reserved.