public class SimpleConsumer<T> extends AbstractConsumer<T,T>
Consumer
that simply returns the objects returned
by the underlying Producer
producer
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, isConsumed, size
protected T doConsume() throws NoSuchElementException
AbstractConsumer
null
doConsume
in class AbstractConsumer<T,T>
null
NoSuchElementException
protected boolean checkConsumed()
AbstractConsumer
Producer
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–2016 MuleSoft, Inc.. All rights reserved.