com.netflix.curator.framework.recipes.queue
Interface MultiItem<T>

Type Parameters:
T - queue item type

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 © 2012. All Rights Reserved.