public final class HmilyTccTransactionExecutor extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static HmilyTccTransactionExecutor |
getInstance()
Gets instance.
|
void |
globalCancel(org.dromara.hmily.repository.spi.entity.HmilyTransaction currentTransaction)
cancel transaction.
|
void |
globalConfirm(org.dromara.hmily.repository.spi.entity.HmilyTransaction currentTransaction)
Call the confirm method and basically if the initiator calls here call the remote or the original method
However, the context sets the call confirm
The remote service calls the confirm method.
|
Object |
participantCancel(List<org.dromara.hmily.repository.spi.entity.HmilyParticipant> hmilyParticipants,
Long selfParticipantId)
Participant cancel object.
|
Object |
participantConfirm(List<org.dromara.hmily.repository.spi.entity.HmilyParticipant> hmilyParticipantList,
Long selfParticipantId)
Participant confirm object.
|
org.dromara.hmily.repository.spi.entity.HmilyTransaction |
preTry(org.aspectj.lang.ProceedingJoinPoint point)
transaction preTry.
|
org.dromara.hmily.repository.spi.entity.HmilyParticipant |
preTryParticipant(HmilyTransactionContext context,
org.aspectj.lang.ProceedingJoinPoint point)
this is Participant transaction preTry.
|
void |
remove()
clean threadLocal help gc.
|
void |
updateStartStatus(org.dromara.hmily.repository.spi.entity.HmilyTransaction hmilyTransaction)
update transaction status by disruptor.
|
public static HmilyTccTransactionExecutor getInstance()
public org.dromara.hmily.repository.spi.entity.HmilyTransaction preTry(org.aspectj.lang.ProceedingJoinPoint point)
point - cut point.public org.dromara.hmily.repository.spi.entity.HmilyParticipant preTryParticipant(HmilyTransactionContext context, org.aspectj.lang.ProceedingJoinPoint point)
context - transaction context.point - cut pointpublic void globalConfirm(org.dromara.hmily.repository.spi.entity.HmilyTransaction currentTransaction)
throws org.dromara.hmily.common.exception.HmilyRuntimeException
currentTransaction - HmilyTransactionorg.dromara.hmily.common.exception.HmilyRuntimeException - expublic Object participantConfirm(List<org.dromara.hmily.repository.spi.entity.HmilyParticipant> hmilyParticipantList, Long selfParticipantId)
hmilyParticipantList - the hmily participant listselfParticipantId - the self participant idpublic void globalCancel(org.dromara.hmily.repository.spi.entity.HmilyTransaction currentTransaction)
currentTransaction - HmilyTransactionpublic Object participantCancel(List<org.dromara.hmily.repository.spi.entity.HmilyParticipant> hmilyParticipants, Long selfParticipantId)
hmilyParticipants - the hmily participantsselfParticipantId - the self participant idpublic void updateStartStatus(org.dromara.hmily.repository.spi.entity.HmilyTransaction hmilyTransaction)
hmilyTransaction - HmilyTransactionpublic void remove()
Copyright © 2022 dromara. All rights reserved.