Class PojoMassIndexingFailureHandledRunnable
java.lang.Object
org.hibernate.search.mapper.pojo.massindexing.impl.PojoMassIndexingFailureHandledRunnable
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
PojoMassIndexingBatchCoordinator,PojoMassIndexingBatchIndexingWorkspace,PojoMassIndexingEntityIdentifierLoadingRunnable,PojoMassIndexingEntityLoadingRunnable
Common parent of all Runnable implementations for the batch indexing:
share the code for handling runtime exceptions.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPojoMassIndexingFailureHandledRunnable(PojoMassIndexingNotifier notifier, MassIndexingEnvironment environment) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected abstract voidprotected abstract voidprotected MassIndexingEnvironment.Contextprotected final MassIndexingEnvironmentprotected final PojoMassIndexingNotifierprotected voidnotifyError(Error error) protected voidnotifyFailure(RuntimeException exception) protected voidnotifyInterrupted(InterruptedException exception) protected voidprotected Stringfinal voidrun()protected abstract voidprotected boolean
-
Constructor Details
-
PojoMassIndexingFailureHandledRunnable
protected PojoMassIndexingFailureHandledRunnable(PojoMassIndexingNotifier notifier, MassIndexingEnvironment environment)
-
-
Method Details
-
run
public final void run() -
runWithFailureHandler
- Throws:
InterruptedException
-
cleanUpOnInterruption
- Throws:
InterruptedException
-
cleanUpOnFailure
- Throws:
InterruptedException
-
createMassIndexingEnvironmentContext
-
supportsThreadLifecycleHooks
protected boolean supportsThreadLifecycleHooks() -
beforeExecution
protected void beforeExecution() -
afterExecution
protected void afterExecution() -
getNotifier
-
getMassIndexingEnvironment
-
notifySuccess
protected void notifySuccess() -
notifyError
-
notifyInterrupted
-
notifyFailure
-
operationName
-