com.arjuna.ats.txoj.Lock.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(183)

本文整理了Java中com.arjuna.ats.txoj.Lock.<init>()方法的一些代码示例,展示了Lock.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lock.<init>()方法的具体详情如下:
包路径:com.arjuna.ats.txoj.Lock
类名称:Lock
方法名:<init>

Lock.<init>介绍

[英]Create a new lock.
[中]创建一个新锁。

代码示例

代码示例来源:origin: stackoverflow.com

interface MajorObjectWrapper{
 public Object getMajorObject();
}

enum Utility implements MajorObjectWrapper {
 VAULT("Gold"),
 //...
 LOCK(new Lock());

 @Override public Object getMajorObject(){ return obj; }

 private Object obj;

 Utility(Object obj){ this.obj=obj };

}

{
 MajorObjectWrapper wrapper=Utility.VAULT;
 System.out.println(wrapper.getMajorObject());
 // You will get: "Gold"! :)
}

代码示例来源:origin: jbosstm/narayana

int result = _txObject.setlock((_optimistic ? new OptimisticLock(LockMode.WRITE) : new Lock(LockMode.WRITE)), 0, 0);

代码示例来源:origin: jbosstm/narayana

int result = _txObject.setlock((_optimistic ? new OptimisticLock(cachedLock._lockType) : new Lock(cachedLock._lockType)), cachedLock._retry, cachedLock._timeout);

代码示例来源:origin: jbosstm/narayana

current = new Lock(u);

代码示例来源:origin: jbosstm/narayana

current = new Lock(u);

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

current = new Lock(u);

代码示例来源:origin: org.jboss.narayana.arjunacore/arjunacore

current = new Lock(u);

代码示例来源:origin: jbosstm/narayana

current = new Lock(u);

代码示例来源:origin: org.jboss.jbossts.arjunacore/txoj

current = new Lock(u);

代码示例来源:origin: org.jboss.jbossts/jbossjta

current = new Lock(u);

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

current = new Lock(u);

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjunacore

current = new Lock(u);

代码示例来源:origin: jboss.jbossts/jbossjts

current = new Lock(u);

相关文章