com.atlassian.confluence.search.lucene
Class ObjectQueue

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.ObjectQueue

@ThreadSafe
public class ObjectQueue
extends java.lang.Object

An abstraction over a list of HibernateHandles, to allow clients to pop the queue and only have to deal with actual persistent objects.


Constructor Summary
ObjectQueue(java.util.List<HibernateHandle> handles, AnyTypeDao anyTypeDao)
           
 
Method Summary
 java.util.Collection pop()
          Converts up to 10 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
 

Constructor Detail

ObjectQueue

public ObjectQueue(java.util.List<HibernateHandle> handles,
                   AnyTypeDao anyTypeDao)
Method Detail

pop

public java.util.Collection pop()
Converts up to 10 handles of the same class into objects. These handles will be removed from the original collection.

Returns:
up to 10 objects of the same class at a time.


Copyright © 2003-2010 Atlassian. All Rights Reserved.