public interface FailureHandler
The handler should be used to report failures to application maintainers.
The default failure handler simply logs failures at the ERROR level,
but it can be replaced with a custom implementations through
a configuration property.
Handlers can be called from multiple threads simultaneously: implementations must be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
void |
handle(EntityIndexingFailureContext context)
Handle the failure of entity indexing.
|
void |
handle(FailureContext context)
Handle a generic failure.
|
void |
handle(IndexFailureContext context)
Handle the failure of an index operation.
|
void handle(FailureContext 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, ...)void handle(EntityIndexingFailureContext 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, ...)void handle(IndexFailureContext 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.