Package org.alfresco.repo.batch
Interface BatchProcessor.BatchProcessWorker<T>
- All Known Implementing Classes:
BatchProcessor.BatchProcessWorkerAdaptor,ChainingUserRegistrySynchronizer.BaseBatchProcessWorker,FixedAclUpdater.AclWorker
- Enclosing class:
- BatchProcessor<T>
public static interface BatchProcessor.BatchProcessWorker<T>
An interface for workers to be invoked by the
BatchProcessor.-
Method Summary
Modifier and TypeMethodDescriptionvoidCallback to allow thread cleanup after the work entries have beenprocessed.voidCallback to allow thread initialization before the work entries areprocessed.getIdentifier(T entry) Gets an identifier for the given entry (for monitoring / logging purposes).voidProcesses the given entry.
-
Method Details
-
getIdentifier
Gets an identifier for the given entry (for monitoring / logging purposes).- Parameters:
entry- the entry- Returns:
- the identifier
-
beforeProcess
Callback to allow thread initialization before the work entries areprocessed. Typically, this will include authenticating as a valid user and disbling or enabling any system flags that might affect the entry processing.- Throws:
Throwable
-
process
Processes the given entry.- Parameters:
entry- the entry- Throws:
Throwable- on any error
-
afterProcess
Callback to allow thread cleanup after the work entries have beenprocessed. 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.- Throws:
Throwable
-