|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PRQueueIterator
A simple iterator with support for next() method to browse a particular class of items in the queue.
Field Summary | |
---|---|
static java.lang.String |
VERSION
|
Method Summary | |
---|---|
ClipboardPage |
first()
Get oldest (first) queue item based on criteria and class specified when this QueueIterator was constructed via PRQueueManager.iterator(String) |
ClipboardPage |
first(boolean aAcquireLock)
Get oldest (first) queue item based on criteria and class specified when this QueueIterator was constructed via PRQueueManager.iterator(String) |
java.lang.Object |
next()
Get next queue item based on criteria and class specified when this QueueIterator was constructed. |
ClipboardPage |
next(boolean aAcquireLock)
Get next queue item based on criteria and class specified when this QueueIterator was constructed via PRQueueManager.iterator(String) |
Field Detail |
---|
static final java.lang.String VERSION
Method Detail |
---|
ClipboardPage next(boolean aAcquireLock)
PRQueueManager.iterator(String)
If previous locked item exists in the owning QueueManager, will throw Exception.
This method will return the item that is the next oldest after the previous item retrieved by this iterator.
aAcquireLock
- Should queue item be reserved for exclusive processing. If
lock is acquired, this marks the start of the transaction that can be completed
via rollback or commit. Note: If aAcquireLock is false, item will NOT be locked
for exclusive processing, and could potentially be processed by another requestor.
java.lang.Object next()
If previous locked item exists in the owning QueueManager, will throw Exception.
This version of next always acquires a lock on the item which can be released via commit() or rollback().
This method will return the item that is the next oldest after the previous item retrieved by this iterator.
ClipboardPage first(boolean aAcquireLock)
PRQueueManager.iterator(String)
If previous locked item exists in the owning QueueManager, will throw Exception.
This method ignores any previous items retrieved by this iterator, so it may return the same item repeatedly.
aAcquireLock
- Should queue item be reserved for exclusive processing. If
lock is acquired, this marks the start of the transaction that can be completed
via rollback or commit. Note: If aAcquireLock is false, item will NOT be locked
for exclusive processing, and could potentially be processed by another requestor.
ClipboardPage first()
PRQueueManager.iterator(String)
If previous locked item exists in the owning QueueManager, will throw Exception.
This method ignores any previous items retrieved by this iterator, so it may return the same item repeatedly.
This version of first always acquires a lock on the item which can be released via commit() or rollback().
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |