@Experimental public interface ErrorHandler
Intended for those stores without transactional semantics, where it allows to determine the changes applied prior to a failure during application of the changes collected for a a unit of work.
Instead of implementing this interface directly, implementations should be derived from BaseErrorHandler, as
new methods will be added to the contract in the future. Implementations must be thread-safe.
Error handlers are registered via the OgmProperties.ERROR_HANDLER property.
OgmProperties.ERROR_HANDLER| Modifier and Type | Interface and Description |
|---|---|
static interface |
ErrorHandler.FailedGridDialectOperationContext
Provides contextual information when notifying an
ErrorHandler about a failed grid dialect operation. |
static interface |
ErrorHandler.RollbackContext
Provides contextual information when notifying an
ErrorHandler about a transaction rollback. |
| Modifier and Type | Method and Description |
|---|---|
ErrorHandlingStrategy |
onFailedGridDialectOperation(ErrorHandler.FailedGridDialectOperationContext context)
Callback method invoked if an error occurred during the execution of a grid dialect method.
|
void |
onRollback(ErrorHandler.RollbackContext context)
Callback method invoked if the current "transaction" is rolled back.
|
ErrorHandlingStrategy onFailedGridDialectOperation(ErrorHandler.FailedGridDialectOperationContext context)
void onRollback(ErrorHandler.RollbackContext context)
Copyright © 2010-2024 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.