public class SimpleConsumer<T> extends AbstractConsumer<T,T>
Consumer that simply returns the objects returned by the underlying Producerproducer| Constructor and Description |
|---|
SimpleConsumer(Producer<T> producer) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkConsumed()
Implement this method to actualy check for the
Producer being fully consumed without worrying about it being closed
or throwing any exceptions |
protected T |
doConsume()
Implement this method to actually consume the producer without worrying about exception types or checking fo this consumer to
be closed.
|
close, consume, getSize, isConsumedprotected T doConsume() throws NoSuchElementException
AbstractConsumernulldoConsume in class AbstractConsumer<T,T>nullNoSuchElementExceptionprotected boolean checkConsumed()
AbstractConsumerProducer being fully consumed without worrying about it being closed
or throwing any exceptionscheckConsumed in class AbstractConsumer<T,T>Producer has been consumed or notCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.