|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityObjectQueue
Retrieves objects from a list of their handles. The queue will consume the list of handles as it runs, so multiple queues can run against a single list of handles in different threads.
These are useful if you are performing an operation against a lot of objects, but don't want to load all the objects at once. You can get their Handles, and then run through them and have the queue lazy-load the objects in smaller batches.
Retrieve the queue appropriate to your DAO implementation using
EntityObjectQueueFactory.getEntityObjectQueue(java.util.List)
.
It is not safe to give the same queue to multiple threads. However, if each thread has a different queue sharing the same set of handles, they will run through the handles safely in parallel.
The queue may re-order the list if it means it can retrieve the objects more efficiently.
Method Summary | |
---|---|
void |
clearCaches()
Clear any underlying caches that might be kept as the queue is run through. |
void |
close()
Release all resources (i.e. |
java.util.List |
getNextObjects()
Get a collection of the next "group" of objects from the queue. |
Method Detail |
---|
java.util.List getNextObjects()
void close()
void clearCaches()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |