Class PojoMassIndexingFailSafeFailureHandlerWrapper
java.lang.Object
org.hibernate.search.mapper.pojo.massindexing.impl.PojoMassIndexingFailSafeFailureHandlerWrapper
- All Implemented Interfaces:
MassIndexingFailureHandler
public class PojoMassIndexingFailSafeFailureHandlerWrapper
extends Object
implements MassIndexingFailureHandler
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of failures during one mass indexing beyond which the failure handler will no longer be notified.voidhandle(MassIndexingEntityFailureContext context) Handle a failure when indexing an entity.voidhandle(MassIndexingFailureContext context) Handle a generic failure.
-
Constructor Details
-
PojoMassIndexingFailSafeFailureHandlerWrapper
-
-
Method Details
-
handle
Description copied from interface:MassIndexingFailureHandlerHandle a generic failure.This method is expected to report the failure somewhere (logs, ...), then return as quickly as possible. Heavy error processing (sending emails, ...), if any, should be done asynchronously.
Any error or exception thrown by this method will be caught by Hibernate Search and logged.
- Specified by:
handlein interfaceMassIndexingFailureHandler- Parameters:
context- Contextual information about the failure (throwable, operation, ...)
-
handle
Description copied from interface:MassIndexingFailureHandlerHandle a failure when indexing an entity.This method is expected to report the failure somewhere (logs, ...), then return as quickly as possible. Heavy error processing (sending emails, ...), if any, should be done asynchronously.
Any error or exception thrown by this method will be caught by Hibernate Search and logged.
- Specified by:
handlein interfaceMassIndexingFailureHandler- Parameters:
context- Contextual information about the failure (throwable, operation, ...)
-
failureFloodingThreshold
public long failureFloodingThreshold()Description copied from interface:MassIndexingFailureHandlerReturns the number of failures during one mass indexing beyond which the failure handler will no longer be notified. This threshold is reached separately for each indexed type.May be overridden by mass indexer parameters (see
failureFloodingThreshold(long)in theMassIndexerinterface).- Specified by:
failureFloodingThresholdin interfaceMassIndexingFailureHandler
-