本文整理了Java中org.jruby.RubyModule.getClassVariablesForWriteAtomic
方法的一些代码示例,展示了RubyModule.getClassVariablesForWriteAtomic
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RubyModule.getClassVariablesForWriteAtomic
方法的具体详情如下:
包路径:org.jruby.RubyModule
类名称:RubyModule
方法名:getClassVariablesForWriteAtomic
[英]Get the class variables for write. If it is not set or not of the right size, atomically update it with an appropriate value.
[中]获取要写入的类变量。如果未设置或大小不正确,请使用适当的值进行原子更新。
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
protected Map<String, IRubyObject> getClassVariables() {
if (CLASSVARS_UPDATER == null) {
return getClassVariablesForWriteSynchronized();
} else {
return getClassVariablesForWriteAtomic();
}
}
代码示例来源:origin: org.jruby/jruby-core
protected Map<String, IRubyObject> getClassVariables() {
if (CLASSVARS_UPDATER == null) {
return getClassVariablesForWriteSynchronized();
}
return getClassVariablesForWriteAtomic();
}
代码示例来源:origin: org.jruby/jruby-complete
protected Map<String, IRubyObject> getClassVariables() {
if (CLASSVARS_UPDATER == null) {
return getClassVariablesForWriteSynchronized();
}
return getClassVariablesForWriteAtomic();
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
protected Map<String, IRubyObject> getClassVariables() {
if (CLASSVARS_UPDATER == null) {
return getClassVariablesForWriteSynchronized();
} else {
return getClassVariablesForWriteAtomic();
}
}
内容来源于网络,如有侵权,请联系作者删除!