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
Closeable
close
in interface Closeable
MuleException
- if an exception occurs closing the resourcepublic int size()
ProvidesTotalHint
size
in interface ProvidesTotalHint
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.