public interface LocalTransactionExecutor
The associated message will be exposed to consumer when the local transaction has been committed, or be discarded if local transaction has been rolled back.
If the executor doesn't submit the transaction status for a long time, the server may lookup it forwardly through
check(Message, CheckContext)
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LocalTransactionExecutor.CheckContext |
static interface |
LocalTransactionExecutor.ExecutionContext |
| Modifier and Type | Method and Description |
|---|---|
void |
check(Message message,
LocalTransactionExecutor.CheckContext context)
Checks the status of the local transaction branch.
|
void |
execute(Message message,
LocalTransactionExecutor.ExecutionContext context)
Executes the local transaction branch after the message is sent successfully, and submits the
status whether the transaction was successfully committed or rolled back.
|
void execute(Message message, LocalTransactionExecutor.ExecutionContext context)
message - the associated messagecontext - the execution contextvoid check(Message message, LocalTransactionExecutor.CheckContext context)
message - the associated messagecontext - the check contextCopyright © 2017–2018 OpenMessaging. All rights reserved.