public class CompositeProducer<T> extends Object implements Producer<T>
Producer
to expose streams from several producers as a
single data feed. Producers are consumed in order until they're all consumed. All
producers need to share the same generic type TConstructor and Description |
---|
CompositeProducer(List<Producer<T>> producers)
Takes a list of producers to be composited.
|
CompositeProducer(Producer<T>... producers) |
public CompositeProducer(List<Producer<T>> producers)
producers
- a list of Producer
public T produce()
null. This method does not close any producer when it is
exhausted. Use the close method for that
public int size()
size
in interface ProvidesTotalHint
public void close() throws MuleException
close
in interface Closeable
MuleException
- if an exception occurs closing the resourceCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.