|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface BatchProcessor.BatchProcessWorker
An interface for workers to be invoked by the BatchProcessor.
| Method Summary | |
|---|---|
void |
afterProcess()
Callback to allow thread cleanup after the work entries have been processed. |
void |
beforeProcess()
Callback to allow thread initialization before the work entries are processed. |
java.lang.String |
getIdentifier(java.lang.Object entry)
Gets an identifier for the given entry (for monitoring / logging purposes). |
void |
process(java.lang.Object entry)
Processes the given entry. |
| Method Detail |
|---|
java.lang.String getIdentifier(java.lang.Object entry)
entry - the entry
void beforeProcess()
throws java.lang.Throwable
processed. Typically, this will include authenticating
as a valid user and disbling or enabling any system flags that might affect the
entry processing.
java.lang.Throwable
void process(java.lang.Object entry)
throws java.lang.Throwable
entry - the entry
java.lang.Throwable - on any error
void afterProcess()
throws java.lang.Throwable
processed.
Typically, this will involve cleanup of authentication and resetting any
system flags previously set.
This call is made regardless of the outcome of the entry processing.
java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||