org.mule.streaming
Interface ProvidesTotalHint

All Known Subinterfaces:
Consumer<T>, Producer<T>
All Known Implementing Classes:
AbstractConsumer, CompositeProducer, ConsumerIterator, ListableObjectStoreProducer, ListConsumer, PagingDelegateProducer, QueueProducer, SimpleConsumer

public interface ProvidesTotalHint

Object provides a hint on total amount of elements it has/can process

Since:
3.5.0

Method Summary
 int size()
          returns the total amount of items available for storage/processing.
 

Method Detail

size

int size()
returns the total amount of items available for storage/processing. In some scenarios, it might not be possible/convenient to actually retrieve this value or it might not be available at this point. -1 is returned in such a case.



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