本文整理了Java中org.apache.geronimo.transaction.manager.XidImpl.<init>()
方法的一些代码示例,展示了XidImpl.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XidImpl.<init>()
方法的具体详情如下:
包路径:org.apache.geronimo.transaction.manager.XidImpl
类名称:XidImpl
方法名:<init>
[英]Constructor for a branch id
[中]分支id的构造函数
代码示例来源:origin: org.apache.geronimo.components/geronimo-transaction
public Xid recover(int formatId, byte[] globalTransactionid, byte[] branchQualifier) {
return new XidImpl(formatId, globalTransactionid, branchQualifier);
}
代码示例来源:origin: org.apache.servicemix.transaction/org.apache.servicemix.transaction
public Xid recover(int formatId, byte[] globalTransactionid, byte[] branchQualifier) {
return new XidImpl(formatId, globalTransactionid, branchQualifier);
}
代码示例来源:origin: apache/felix
public Xid recover(int formatId, byte[] globalTransactionid, byte[] branchQualifier) {
return new XidImpl(formatId, globalTransactionid, branchQualifier);
}
代码示例来源:origin: org.apache.geronimo/com.springsource.org.apache.geronimo.transaction
public Xid recover(int formatId, byte[] globalTransactionid, byte[] branchQualifier) {
return new XidImpl(formatId, globalTransactionid, branchQualifier);
}
代码示例来源:origin: org.apache.aries.transaction/org.apache.aries.transaction.manager
public Xid recover(int formatId, byte[] globalTransactionid, byte[] branchQualifier) {
return new XidImpl(formatId, globalTransactionid, branchQualifier);
}
代码示例来源:origin: apache/felix
public Xid createBranch(Xid globalId, int branch) {
byte[] branchId = (byte[]) baseId.clone();
branchId[0] = (byte) branch;
branchId[1] = (byte) (branch >>> 8);
branchId[2] = (byte) (branch >>> 16);
branchId[3] = (byte) (branch >>> 24);
return new XidImpl(globalId, branchId);
}
代码示例来源:origin: org.apache.servicemix.transaction/org.apache.servicemix.transaction
public Xid createBranch(Xid globalId, int branch) {
byte[] branchId = (byte[]) baseId.clone();
branchId[0] = (byte) branch;
branchId[1] = (byte) (branch >>> 8);
branchId[2] = (byte) (branch >>> 16);
branchId[3] = (byte) (branch >>> 24);
return new XidImpl(globalId, branchId);
}
代码示例来源:origin: org.apache.geronimo/com.springsource.org.apache.geronimo.transaction
public Xid createBranch(Xid globalId, int branch) {
byte[] branchId = (byte[]) baseId.clone();
branchId[0] = (byte) branch;
branchId[1] = (byte) (branch >>> 8);
branchId[2] = (byte) (branch >>> 16);
branchId[3] = (byte) (branch >>> 24);
return new XidImpl(globalId, branchId);
}
代码示例来源:origin: apache/felix
public Xid createXid() {
byte[] globalId = (byte[]) baseId.clone();
long id;
synchronized (this) {
id = count++;
}
globalId[0] = (byte) id;
globalId[1] = (byte) (id >>> 8);
globalId[2] = (byte) (id >>> 16);
globalId[3] = (byte) (id >>> 24);
globalId[4] = (byte) (id >>> 32);
globalId[5] = (byte) (id >>> 40);
globalId[6] = (byte) (id >>> 48);
globalId[7] = (byte) (id >>> 56);
return new XidImpl(globalId);
}
代码示例来源:origin: org.apache.geronimo/com.springsource.org.apache.geronimo.transaction
public Xid createXid() {
byte[] globalId = (byte[]) baseId.clone();
long id;
synchronized (this) {
id = count++;
}
globalId[0] = (byte) id;
globalId[1] = (byte) (id >>> 8);
globalId[2] = (byte) (id >>> 16);
globalId[3] = (byte) (id >>> 24);
globalId[4] = (byte) (id >>> 32);
globalId[5] = (byte) (id >>> 40);
globalId[6] = (byte) (id >>> 48);
globalId[7] = (byte) (id >>> 56);
return new XidImpl(globalId);
}
代码示例来源:origin: org.apache.servicemix.transaction/org.apache.servicemix.transaction
public Xid createXid() {
byte[] globalId = (byte[]) baseId.clone();
long id;
synchronized (this) {
id = count++;
}
globalId[0] = (byte) id;
globalId[1] = (byte) (id >>> 8);
globalId[2] = (byte) (id >>> 16);
globalId[3] = (byte) (id >>> 24);
globalId[4] = (byte) (id >>> 32);
globalId[5] = (byte) (id >>> 40);
globalId[6] = (byte) (id >>> 48);
globalId[7] = (byte) (id >>> 56);
return new XidImpl(globalId);
}
代码示例来源:origin: org.apache.geronimo.components/geronimo-transaction
public Xid createXid() {
byte[] globalId = (byte[]) baseId.clone();
long id;
synchronized (this) {
id = count++;
}
insertLong(id, globalId, 0);
return new XidImpl(globalId);
}
代码示例来源:origin: org.apache.aries.transaction/org.apache.aries.transaction.manager
public Xid createXid() {
byte[] globalId = (byte[]) baseId.clone();
long id;
synchronized (this) {
id = count++;
}
insertLong(id, globalId, 0);
return new XidImpl(globalId);
}
代码示例来源:origin: org.apache.geronimo.components/geronimo-transaction
public Xid createBranch(Xid globalId, int branch) {
byte[] branchId = (byte[]) baseId.clone();
branchId[0] = (byte) branch;
branchId[1] = (byte) (branch >>> 8);
branchId[2] = (byte) (branch >>> 16);
branchId[3] = (byte) (branch >>> 24);
insertLong(start, branchId, 4);
return new XidImpl(globalId, branchId);
}
代码示例来源:origin: org.apache.aries.transaction/org.apache.aries.transaction.manager
public Xid createBranch(Xid globalId, int branch) {
byte[] branchId = (byte[]) baseId.clone();
branchId[0] = (byte) branch;
branchId[1] = (byte) (branch >>> 8);
branchId[2] = (byte) (branch >>> 16);
branchId[3] = (byte) (branch >>> 24);
insertLong(start, branchId, 4);
return new XidImpl(globalId, branchId);
}
内容来源于网络,如有侵权,请联系作者删除!