Package com.complexible.common.base
Interface HandlerBackedIterator.DataProducer<T>
-
- Enclosing class:
- HandlerBackedIterator<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface HandlerBackedIterator.DataProducer<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run(HandlerBackedIterator.DataConsumer<T> handler)
Generates data items and pushes it to the handler.
-
-
-
Method Detail
-
run
void run(HandlerBackedIterator.DataConsumer<T> handler)
Generates data items and pushes it to the handler. Note: this method _must_ stop if the handler throws aHandlerBackedIterator.ProducerFinished
error. That's the prime way to stop iteration before getting all results.
-
-