public class XID extends Object
| 构造器和说明 |
|---|
XID() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
generateXID(long tranId)
Generate xid string.
|
static String |
getIpAddress()
Gets ip address.
|
static int |
getPort()
Gets port.
|
static long |
getTransactionId(String xid)
Gets transaction id.
|
static void |
setIpAddress(String ipAddress)
Sets ip address.
|
static void |
setPort(int port)
Sets port.
|
public static void setPort(int port)
port - the portpublic static void setIpAddress(String ipAddress)
ipAddress - the ip addresspublic static String generateXID(long tranId)
tranId - the tran idpublic static long getTransactionId(String xid)
xid - the xidpublic static int getPort()
public static String getIpAddress()
Copyright © 2019 Seata. All rights reserved.