public interface FailureHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onBeginFailure(GlobalTransaction tx,
Throwable cause)
On begin failure.
|
void |
onCommitFailure(GlobalTransaction tx,
Throwable cause)
On commit failure.
|
void |
onRollbackFailure(GlobalTransaction tx,
Throwable originalException)
On rollback failure.
|
void |
onRollbackRetrying(GlobalTransaction tx,
Throwable originalException)
On rollback retrying
|
void |
onTimeoutRollback(GlobalTransaction tx,
Throwable originalException)
On timeout rollback
|
void onBeginFailure(GlobalTransaction tx, Throwable cause)
tx - the txcause - the causevoid onCommitFailure(GlobalTransaction tx, Throwable cause)
tx - the txcause - the causevoid onRollbackFailure(GlobalTransaction tx, Throwable originalException)
tx - the txoriginalException - the originalExceptionvoid onRollbackRetrying(GlobalTransaction tx, Throwable originalException)
tx - the txoriginalException - the originalExceptionvoid onTimeoutRollback(GlobalTransaction tx, Throwable originalException)
tx - the txoriginalException - the originalExceptionCopyright © 2022 Seata. All rights reserved.