Class PojoMassIndexingDelegatingFailureHandler
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.massindexing.impl.PojoMassIndexingDelegatingFailureHandler
-
- All Implemented Interfaces:
MassIndexingFailureHandler
public class PojoMassIndexingDelegatingFailureHandler extends Object implements MassIndexingFailureHandler
-
-
Constructor Summary
Constructors Constructor Description PojoMassIndexingDelegatingFailureHandler(FailureHandler delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longfailureFloodingThreshold()Returns 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 Detail
-
PojoMassIndexingDelegatingFailureHandler
public PojoMassIndexingDelegatingFailureHandler(FailureHandler delegate)
-
-
Method Detail
-
handle
public void handle(MassIndexingFailureContext context)
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
public void handle(MassIndexingEntityFailureContext context)
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
-
-