public static interface BatchProcessor.BatchProcessWorker<T>
BatchProcessor
.Modifier and Type | Method and Description |
---|---|
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 . |
String |
getIdentifier(T entry)
Gets an identifier for the given entry (for monitoring / logging purposes).
|
void |
process(T entry)
Processes the given entry.
|
String getIdentifier(T entry)
entry
- the entryvoid beforeProcess() throws Throwable
processed
. Typically, this will include authenticating
as a valid user and disbling or enabling any system flags that might affect the
entry processing.Throwable
void process(T entry) throws Throwable
entry
- the entryThrowable
- on any errorvoid afterProcess() throws 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.Throwable
Copyright © 2005–2017 Alfresco Software. All rights reserved.