org.apache.curator.framework.recipes.queue
Interface MultiItem<T>


public interface MultiItem<T>

Abstraction for multiple items.

See Also:
DistributedQueue.putMulti(MultiItem), DistributedPriorityQueue.putMulti(MultiItem, int)

Method Summary
 T nextItem()
          Called repeatedly to get the items to add to the queue.
 

Method Detail

nextItem

T nextItem()
           throws Exception
Called repeatedly to get the items to add to the queue. This method should return null when there are no more items to add.

Returns:
item or null
Throws:
Exception - any errors


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.