org.mule.streaming
Interface Producer<T>

All Superinterfaces:
Closeable, ProvidesTotalHint
All Known Implementing Classes:
CompositeProducer, ListableObjectStoreProducer, PagingDelegateProducer, QueueProducer

public interface Producer<T>
extends Closeable, ProvidesTotalHint

A producer implementation that follows the idea of the Producer-Consumer design pattern. Implementing this interface does not guarantee thread safeness. Check each particular implementation for information about that

Since:
3.5.0

Method Summary
 T produce()
          Returns the next available item
 
Methods inherited from interface org.mule.api.Closeable
close
 
Methods inherited from interface org.mule.streaming.ProvidesTotalHint
size
 

Method Detail

produce

T produce()
Returns the next available item

Returns:
an item. Might be null


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.