Package org.alfresco.repo.batch
Class BatchProcessor.BatchProcessWorkerAdaptor<TT>
- java.lang.Object
-
- org.alfresco.repo.batch.BatchProcessor.BatchProcessWorkerAdaptor<TT>
-
- All Implemented Interfaces:
BatchProcessor.BatchProcessWorker<TT>
- Enclosing class:
- BatchProcessor<T>
@AlfrescoPublicApi public abstract static class BatchProcessor.BatchProcessWorkerAdaptor<TT> extends java.lang.Object implements BatchProcessor.BatchProcessWorker<TT>
Adaptor that allows implementations to only implementBatchProcessor.BatchProcessWorker.process(Object)
-
-
Constructor Summary
Constructors Constructor Description BatchProcessWorkerAdaptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterProcess()No-opvoidbeforeProcess()No-opjava.lang.StringgetIdentifier(TT entry)Gets an identifier for the given entry (for monitoring / logging purposes).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.batch.BatchProcessor.BatchProcessWorker
process
-
-
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier(TT entry)
Description copied from interface:BatchProcessor.BatchProcessWorkerGets an identifier for the given entry (for monitoring / logging purposes).- Specified by:
getIdentifierin interfaceBatchProcessor.BatchProcessWorker<TT>- Parameters:
entry- the entry- Returns:
- Returns the
toString()of the entry
-
beforeProcess
public void beforeProcess() throws java.lang.ThrowableNo-op- Specified by:
beforeProcessin interfaceBatchProcessor.BatchProcessWorker<TT>- Throws:
java.lang.Throwable
-
afterProcess
public void afterProcess() throws java.lang.ThrowableNo-op- Specified by:
afterProcessin interfaceBatchProcessor.BatchProcessWorker<TT>- Throws:
java.lang.Throwable
-
-