public class GlobalTransactionLifecycle extends Object implements org.apache.seata.config.CachedConfigurationChangeListener, org.noear.solon.core.bean.LifecycleBean
| Constructor and Description |
|---|
GlobalTransactionLifecycle(String applicationId,
String txServiceGroup,
boolean exposeProxy,
org.apache.seata.tm.api.FailureHandler failureHandlerHook)
Instantiates a new Global transaction scanner.
|
GlobalTransactionLifecycle(String applicationId,
String txServiceGroup,
int mode,
boolean exposeProxy,
org.apache.seata.tm.api.FailureHandler failureHandlerHook)
Instantiates a new Global transaction scanner.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getAccessKey() |
String |
getApplicationId() |
static String |
getSecretKey() |
String |
getTxServiceGroup() |
protected void |
initClient() |
void |
onChangeEvent(org.apache.seata.config.ConfigurationChangeEvent event) |
protected void |
registerSpringShutdownHook() |
static void |
setAccessKey(String accessKey)
Sets access key.
|
static void |
setSecretKey(String secretKey)
Sets secret key.
|
void |
start() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeforeEventpublic GlobalTransactionLifecycle(String applicationId, String txServiceGroup, boolean exposeProxy, org.apache.seata.tm.api.FailureHandler failureHandlerHook)
applicationId - the application idtxServiceGroup - the tx service groupexposeProxy - the exposeProxyfailureHandlerHook - the failure handler hookpublic GlobalTransactionLifecycle(String applicationId, String txServiceGroup, int mode, boolean exposeProxy, org.apache.seata.tm.api.FailureHandler failureHandlerHook)
applicationId - the application idtxServiceGroup - the tx service groupmode - the modeexposeProxy - the exposeProxyfailureHandlerHook - the failure handler hookpublic static void setAccessKey(String accessKey)
accessKey - the access keypublic static void setSecretKey(String secretKey)
secretKey - the secret keyprotected void initClient()
protected void registerSpringShutdownHook()
public void start()
start in interface org.noear.solon.core.bean.LifecycleBeanstart in interface org.noear.solon.core.Lifecyclepublic void stop()
stop in interface org.noear.solon.core.Lifecyclepublic void onChangeEvent(org.apache.seata.config.ConfigurationChangeEvent event)
onChangeEvent in interface org.apache.seata.config.ConfigurationChangeListenerpublic String getApplicationId()
public String getTxServiceGroup()
public static String getAccessKey()
public static String getSecretKey()
Copyright © 2025. All rights reserved.