public class QueueProducer<T> extends Object implements Producer<T>
| Constructor and Description |
|---|
QueueProducer(Queue queue)
Creates an instance with 5000 milliseconds as the default polling value
|
QueueProducer(Queue queue,
long timeout) |
public QueueProducer(Queue queue)
queue - the queue to stream frompublic QueueProducer(Queue queue, long timeout)
public T produce()
null is returned. If the poll method throws
InterruptedException then null is returned as wellpublic void close()
throws MuleException
Closeableclose in interface CloseableMuleException - if an exception occurs closing the resourcepublic int size()
ProvidesTotalHintsize in interface ProvidesTotalHintCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.