public class DbAndReportTcStateLogStore extends AbstractStore implements StateLogStore
AbstractStore.ObjectToStatement<T>, AbstractStore.ResultSetToObject<T>dataSource, dbType, tablePrefix| Constructor and Description |
|---|
DbAndReportTcStateLogStore() |
closeSilent, executeUpdate, executeUpdate, selectList, selectOne, setDataSource, setDbTypepublic void recordStateMachineStarted(StateMachineInstance machineInstance, ProcessContext context)
StateLogStorerecordStateMachineStarted in interface StateLogStoremachineInstance - the state machine instancecontext - the state machine process contextprotected void beginTransaction(StateMachineInstance machineInstance, ProcessContext context)
public void recordStateMachineFinished(StateMachineInstance machineInstance, ProcessContext context)
StateLogStorerecordStateMachineFinished in interface StateLogStoremachineInstance - the state machine instancecontext - the state machine process contextprotected void reportTransactionFinished(StateMachineInstance machineInstance, ProcessContext context)
public void recordStateMachineRestarted(StateMachineInstance machineInstance, ProcessContext context)
StateLogStorerecordStateMachineRestarted in interface StateLogStoremachineInstance - the state machine instancecontext - the state machine process contextpublic void recordStateStarted(StateInstance stateInstance, ProcessContext context)
StateLogStorerecordStateStarted in interface StateLogStorestateInstance - the state machine instancecontext - the state machine process contextprotected void branchRegister(StateInstance stateInstance, ProcessContext context)
protected GlobalTransaction getGlobalTransaction(StateMachineInstance machineInstance, ProcessContext context) throws TransactionalExecutor.ExecutionException, TransactionException
public void recordStateFinished(StateInstance stateInstance, ProcessContext context)
StateLogStorerecordStateFinished in interface StateLogStorestateInstance - the state machine instancecontext - the state machine process contextprotected void branchReport(StateInstance stateInstance, ProcessContext context)
public StateMachineInstance getStateMachineInstance(String stateMachineInstanceId)
StateLogStoregetStateMachineInstance in interface StateLogStorestateMachineInstanceId - the state machine instance idpublic StateMachineInstance getStateMachineInstanceByBusinessKey(String businessKey, String tenantId)
StateLogStoregetStateMachineInstanceByBusinessKey in interface StateLogStorebusinessKey - the businessKeytenantId - the tenant idpublic List<StateMachineInstance> queryStateMachineInstanceByParentId(String parentId)
StateLogStorequeryStateMachineInstanceByParentId in interface StateLogStoreparentId - the state machine parent's idpublic StateInstance getStateInstance(String stateInstanceId, String machineInstId)
StateLogStoregetStateInstance in interface StateLogStorestateInstanceId - the state instance idmachineInstId - the machine instance idpublic List<StateInstance> queryStateInstanceListByMachineInstanceId(String stateMachineInstanceId)
StateLogStorequeryStateInstanceListByMachineInstanceId in interface StateLogStorestateMachineInstanceId - the state machine instance idpublic void clearUp()
StateLogStoreclearUp in interface StateLogStorepublic void setExceptionSerializer(Serializer<Exception,byte[]> exceptionSerializer)
public SagaTransactionalTemplate getSagaTransactionalTemplate()
public void setSagaTransactionalTemplate(SagaTransactionalTemplate sagaTransactionalTemplate)
public Serializer<Object,String> getParamsSerializer()
public void setParamsSerializer(Serializer<Object,String> paramsSerializer)
public String getDefaultTenantId()
public void setDefaultTenantId(String defaultTenantId)
public void setSeqGenerator(SeqGenerator seqGenerator)
public void setTablePrefix(String tablePrefix)
setTablePrefix in class AbstractStoreCopyright © 2023 Seata. All rights reserved.