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 T| Constructor 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 Producerpublic 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 ProvidesTotalHintpublic void close()
throws MuleException
close in interface CloseableMuleException - if an exception occurs closing the resourceCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.