public interface 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.
| Modifier and Type | Method and Description |
|---|---|
default void |
handle(MassIndexingEntityFailureContext context)
Handle a failure when indexing an entity.
|
void |
handle(MassIndexingFailureContext context)
Handle a generic failure.
|
void handle(MassIndexingFailureContext context)
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.
context - Contextual information about the failure (throwable, operation, ...)default void handle(MassIndexingEntityFailureContext context)
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.
context - Contextual information about the failure (throwable, operation, ...)Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.