Understood. Anyway, I can also change Iterable to Stream. StreamSupport.stream(csvToBean.spliterator(), false)
OutOfMemoryError when consuming rate is slower than producing rate with stream