Interface MassIndexingFailureHandler
-
- All Superinterfaces:
MassIndexingFailureHandler
@Deprecated public interface MassIndexingFailureHandler extends MassIndexingFailureHandler
Deprecated.move toMassIndexingFailureHandler
.A handler for failures occurring during mass indexing.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 theERROR
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
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
handle(MassIndexingEntityFailureContext context)
Deprecated.void
handle(MassIndexingFailureContext context)
Deprecated.
-
-
-
Method Detail
-
handle
@Deprecated void handle(MassIndexingFailureContext context)
Deprecated.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:
handle
in interfaceMassIndexingFailureHandler
- Parameters:
context
- Contextual information about the failure (throwable, operation, ...)
-
handle
@Deprecated default void handle(MassIndexingEntityFailureContext context)
Deprecated.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:
handle
in interfaceMassIndexingFailureHandler
- Parameters:
context
- Contextual information about the failure (throwable, operation, ...)
-
-