org.jruby.RubyModule.getClassVariablesForWriteSynchronized()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(63)

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

RubyModule.getClassVariablesForWriteSynchronized介绍

[英]Get the class variables for write. If it is not set or not of the right size, synchronize against the object and prepare it accordingly.
[中]获取要写入的类变量。如果未设置或大小不正确,请与对象同步,并相应地进行准备。

代码示例

代码示例来源: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();
  }
}

相关文章

微信公众号

最新文章

更多

RubyModule类方法