- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.arjuna.ats.jta.utils.XAHelper.sameXID()
方法的一些代码示例,展示了XAHelper.sameXID()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XAHelper.sameXID()
方法的具体详情如下:
包路径:com.arjuna.ats.jta.utils.XAHelper
类名称:XAHelper
方法名:sameXID
[英]Compares two Xid instances.
[中]比较两个Xid实例。
代码示例来源:origin: jboss.jbossts/jbossjts
public boolean contains (Xid xid)
{
if (_scanN != null)
{
for (int i = 0; i < _scanN.length; i++)
{
if (XAHelper.sameXID(xid, _scanN[i]))
return true;
}
}
if (_scanM != null)
{
for (int i = 0; i < _scanM.length; i++)
{
if (XAHelper.sameXID(xid, _scanM[i]))
return true;
}
}
return false;
}
代码示例来源:origin: jboss.jbossts/jbossjts
public final java.lang.Object[] toRecover ()
{
final int numScanN = (_scanN == null ? 0 : _scanN.length) ;
final int numScanM = (_scanM == null ? 0 : _scanM.length) ;
final int numScan = Math.min(numScanN, numScanM) ;
if (numScan == 0)
{
return null ;
}
final Vector workingVector = new Vector() ;
for (int count = 0 ; count < numScan ; count++)
{
if (XAHelper.sameXID(_scanN[count], _scanM[count]))
{
workingVector.add(_scanN[count]);
}
}
return workingVector.toArray();
}
代码示例来源:origin: jbosstm/narayana
/**
* Is the Xid is in the failure list, i.e., the list of those transactions
* we couldn't recover, possibly because of transient failures. If so,
* return the uid of (one of) the records and remove it from the list.
*/
private final Uid previousFailure(Xid xid)
{
if (_failures == null)
{
return null;
}
Enumeration e = _failures.keys();
while (e.hasMoreElements())
{
Xid theXid = (Xid) e.nextElement();
if (XAHelper.sameXID(xid, theXid))
{
// remove uid from failure list
Vector failureItem = (Vector) _failures.get(theXid);
Uid u = (Uid) failureItem.remove(0);
if (failureItem.size() == 0)
_failures.remove(theXid);
return u;
}
}
// not present in the failures list.
return null;
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
/**
* Is the Xid is in the failure list, i.e., the list of those transactions
* we couldn't recover, possibly because of transient failures. If so,
* return the uid of (one of) the records and remove it from the list.
*/
private final Uid previousFailure(Xid xid)
{
if (_failures == null)
{
return null;
}
Enumeration e = _failures.keys();
while (e.hasMoreElements())
{
Xid theXid = (Xid) e.nextElement();
if (XAHelper.sameXID(xid, theXid))
{
// remove uid from failure list
Vector failureItem = (Vector) _failures.get(theXid);
Uid u = (Uid) failureItem.remove(0);
if (failureItem.size() == 0)
_failures.remove(theXid);
return u;
}
}
// not present in the failures list.
return null;
}
代码示例来源:origin: org.jboss.narayana.jta/jta
/**
* Is the Xid is in the failure list, i.e., the list of those transactions
* we couldn't recover, possibly because of transient failures. If so,
* return the uid of (one of) the records and remove it from the list.
*/
private final Uid previousFailure(Xid xid)
{
if (_failures == null)
{
return null;
}
Enumeration e = _failures.keys();
while (e.hasMoreElements())
{
Xid theXid = (Xid) e.nextElement();
if (XAHelper.sameXID(xid, theXid))
{
// remove uid from failure list
Vector failureItem = (Vector) _failures.get(theXid);
Uid u = (Uid) failureItem.remove(0);
if (failureItem.size() == 0)
_failures.remove(theXid);
return u;
}
}
// not present in the failures list.
return null;
}
代码示例来源:origin: jboss.jbossts/jbossjts
/**
* Is the Xid is in the failure list, i.e., the list of those transactions
* we couldn't recover, possibly because of transient failures. If so,
* return the uid of (one of) the records and remove it from the list.
*/
private final Uid previousFailure(Xid xid)
{
if (_failures == null)
{
return null;
}
Enumeration e = _failures.keys();
while (e.hasMoreElements())
{
Xid theXid = (Xid) e.nextElement();
if (XAHelper.sameXID(xid, theXid))
{
// remove uid from failure list
Vector failureItem = (Vector) _failures.get(theXid);
Uid u = (Uid) failureItem.remove(0);
if (failureItem.size() == 0)
_failures.remove(theXid);
return u;
}
}
// not present in the failures list.
return null;
}
代码示例来源:origin: org.jboss.jbossts/jbossjta
/**
* Is the Xid is in the failure list, i.e., the list of those transactions
* we couldn't recover, possibly because of transient failures. If so,
* return the uid of (one of) the records and remove it from the list.
*/
private final Uid previousFailure(Xid xid)
{
if (_failures == null)
{
return null;
}
Enumeration e = _failures.keys();
while (e.hasMoreElements())
{
Xid theXid = (Xid) e.nextElement();
if (XAHelper.sameXID(xid, theXid))
{
// remove uid from failure list
Vector failureItem = (Vector) _failures.get(theXid);
Uid u = (Uid) failureItem.remove(0);
if (failureItem.size() == 0)
_failures.remove(theXid);
return u;
}
}
// not present in the failures list.
return null;
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
/**
* Is the Xid is in the failure list, i.e., the list of those transactions
* we couldn't recover, possibly because of transient failures. If so,
* return the uid of (one of) the records and remove it from the list.
*/
private final Uid previousFailure(Xid xid)
{
if (_failures == null)
{
return null;
}
Enumeration e = _failures.keys();
while (e.hasMoreElements())
{
Xid theXid = (Xid) e.nextElement();
if (XAHelper.sameXID(xid, theXid))
{
// remove uid from failure list
Vector failureItem = (Vector) _failures.get(theXid);
Uid u = (Uid) failureItem.remove(0);
if (failureItem.size() == 0)
_failures.remove(theXid);
return u;
}
}
// not present in the failures list.
return null;
}
代码示例来源:origin: jbosstm/narayana
/**
* Is the Xid is in the failure list, i.e., the list of those transactions
* we couldn't recover, possibly because of transient failures. If so,
* return the uid of (one of) the records and remove it from the list.
*/
private final Uid previousFailure(Xid xid)
{
if (_failures == null)
{
return null;
}
Enumeration e = _failures.keys();
while (e.hasMoreElements())
{
Xid theXid = (Xid) e.nextElement();
if (XAHelper.sameXID(xid, theXid))
{
// remove uid from failure list
Vector failureItem = (Vector) _failures.get(theXid);
Uid u = (Uid) failureItem.remove(0);
if (failureItem.size() == 0)
_failures.remove(theXid);
return u;
}
}
// not present in the failures list.
return null;
}
代码示例来源:origin: jbosstm/narayana
XidImple xid3 = new XidImple(xid1);
assertFalse(XAHelper.sameXID(xid1, xid2));
assertTrue(XAHelper.sameXID(xid1, xid3));
本文整理了Java中com.arjuna.ats.jta.utils.XAHelper.xidToString()方法的一些代码示例,展示了XAHelper.xidToString()的具体用法。这些
本文整理了Java中com.arjuna.ats.jta.utils.XAHelper.sameXID()方法的一些代码示例,展示了XAHelper.sameXID()的具体用法。这些代码示例主要来源
本文整理了Java中com.arjuna.ats.jta.utils.XAHelper.printXAErrorCode()方法的一些代码示例,展示了XAHelper.printXAErrorCode
我是一名优秀的程序员,十分优秀!