Interface MassIndexingFailureHandler
- All Superinterfaces:
org.hibernate.search.mapper.pojo.massindexing.MassIndexingFailureHandler
The handler should be used to report failures to application maintainers.
The default failure handler simply delegates to the configured FailureHandler,
which by default logs failures at the ERROR level,
but it can be replaced with a custom implementations
by configuring the mass indexer.
Handlers can be called from multiple threads simultaneously: implementations must be thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidhandle(org.hibernate.search.mapper.pojo.massindexing.MassIndexingEntityFailureContext context) Deprecated.move toMassIndexingFailureHandler.handle(MassIndexingEntityFailureContext).voidhandle(org.hibernate.search.mapper.pojo.massindexing.MassIndexingFailureContext context) Deprecated.move toMassIndexingFailureHandler.handle(MassIndexingFailureContext).Methods inherited from interface org.hibernate.search.mapper.pojo.massindexing.MassIndexingFailureHandler
failureFloodingThreshold
-
Method Details
-
handle
@Deprecated void handle(org.hibernate.search.mapper.pojo.massindexing.MassIndexingFailureContext context) Deprecated.move toMassIndexingFailureHandler.handle(MassIndexingFailureContext).Handle 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 interfaceorg.hibernate.search.mapper.pojo.massindexing.MassIndexingFailureHandler- Parameters:
context- Contextual information about the failure (throwable, operation, ...)
-
handle
@Deprecated default void handle(org.hibernate.search.mapper.pojo.massindexing.MassIndexingEntityFailureContext context) Deprecated.move toMassIndexingFailureHandler.handle(MassIndexingEntityFailureContext).Handle 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 interfaceorg.hibernate.search.mapper.pojo.massindexing.MassIndexingFailureHandler- Parameters:
context- Contextual information about the failure (throwable, operation, ...)
-
MassIndexingFailureHandler.