|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The listener that does the actual work of writing and removing
files. The queue manager
calls the listener during
queue processing and notifies it of all the tasks that have been
queued. The package documentation describes how to set the concrete
listener to use.
The queue manager processes queue entries in blocks, following these steps:
Iterator block = get block of queue entries from DB; start DB transaction listener.transactionStart(); while (block.hasNext()) { listener.doTask(block.next()); } listener.transactionEnd(); commit DB transactionIf the call to
doTask
throws an exception, the entry is
marked as failing in the queue and the next entry is processed. If the
call to transactionStart()
or transactionEnd()
causes an
exception, the whole transaction is rolled back.
Configuration information
Method Summary | |
boolean |
doTask(QueueEntry qe)
Process one queued task. |
void |
transactionEnd()
Queue manager finished processing one block and is about to commit the transaction. |
void |
transactionStart()
Queue manager just started the processing of a new block. |
Method Detail |
public boolean doTask(QueueEntry qe)
qe
- QueueEntry describing the task that should be performedpublic void transactionStart()
public void transactionEnd()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |