Class ObjectQueue
- java.lang.Object
-
- com.atlassian.confluence.search.lucene.ObjectQueue
-
@Deprecated @ThreadSafe public class ObjectQueue extends Object
Deprecated.since 7.16.0 due to Hibernate 2 removal. This class is not used anymore.An abstraction over a list ofHibernateHandle
s, to allow clients to pop the queue and only have to deal with actual persistent objects.
-
-
Constructor Summary
Constructors Constructor Description ObjectQueue(List<HibernateHandle> handles, AnyTypeDao anyTypeDao)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
isEmpty()
Deprecated.Collection<com.atlassian.bonnie.Searchable>
pop()
Deprecated.Converts up to numberToPop handles of the same class into objects.
-
-
-
Constructor Detail
-
ObjectQueue
public ObjectQueue(List<HibernateHandle> handles, AnyTypeDao anyTypeDao)
Deprecated.
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Deprecated.
-
pop
public Collection<com.atlassian.bonnie.Searchable> pop()
Deprecated.Converts up to numberToPop handles of the same class into objects. These handles will be removed from the original collection. It will only look maxLookAhead items further into the queue as soon as an object of different class is found.- Returns:
- up to numberToPop objects of the same class at a time. Returns empty list if there are no further objects in the queue.
- Throws:
org.springframework.dao.DataAccessException
- if there was a problem contacting the database
-
-