com.atlassian.confluence.search.lucene
Class ObjectQueue
java.lang.Object
com.atlassian.confluence.search.lucene.ObjectQueue
@ThreadSafe
public class ObjectQueue
- extends Object
An abstraction over a list of HibernateHandle
s, to allow clients to pop the queue and only have to deal with actual persistent objects.
Method Summary |
Collection |
pop()
Converts up to NUMBER_TO_POP handles of the same class into objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectQueue
public ObjectQueue(List<HibernateHandle> handles,
AnyTypeDao anyTypeDao)
pop
public Collection pop()
- Converts up to NUMBER_TO_POP handles of the same class into objects. These handles will be removed from the original collection.
- Returns:
- up to NUMBER_TO_POP objects of the same class at a time. Returns empty list if there are no further objects in the queue.
Copyright © 2003-2010 Atlassian. All Rights Reserved.