com.google.common.util.concurrent.AbstractFuture.getFutureValue()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(28)

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

AbstractFuture.getFutureValue介绍

[英]Returns a value that satisfies the contract of the #value field based on the state of given future.

This is approximately the inverse of #getDoneValue(Object)
[中]返回一个值,该值满足基于给定未来状态的#值字段的约定。
这与#getDoneValue(对象)大致相反

代码示例

代码示例来源:origin: google/guava

Object valueToSet = getFutureValue(setFuture.future);
if (ATOMIC_HELPER.casValue(future, setFuture, valueToSet)) {
 continue outer;

代码示例来源:origin: google/guava

if (localValue == null) {
 if (future.isDone()) {
  Object value = getFutureValue(future);
  if (ATOMIC_HELPER.casValue(this, null, value)) {
   complete(this);

代码示例来源:origin: google/j2objc

Object valueToSet = getFutureValue(setFuture.future);
if (ATOMIC_HELPER.casValue(future, setFuture, valueToSet)) {
 continue outer;

代码示例来源:origin: google/j2objc

if (localValue == null) {
 if (future.isDone()) {
  Object value = getFutureValue(future);
  if (ATOMIC_HELPER.casValue(this, null, value)) {
   complete(this);

代码示例来源:origin: wildfly/wildfly

Object valueToSet = getFutureValue(setFuture.future);
if (ATOMIC_HELPER.casValue(future, setFuture, valueToSet)) {
 continue outer;

代码示例来源:origin: wildfly/wildfly

if (localValue == null) {
 if (future.isDone()) {
  Object value = getFutureValue(future);
  if (ATOMIC_HELPER.casValue(this, null, value)) {
   complete(this);

代码示例来源:origin: org.jboss.eap/wildfly-client-all

Object valueToSet = getFutureValue(setFuture.future);
if (ATOMIC_HELPER.casValue(future, setFuture, valueToSet)) {
 continue outer;

代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

Object valueToSet = getFutureValue(setFuture.future);
if (ATOMIC_HELPER.casValue(future, setFuture, valueToSet)) {
 continue outer;

代码示例来源:origin: org.jboss.eap/wildfly-client-all

if (localValue == null) {
 if (future.isDone()) {
  Object value = getFutureValue(future);
  if (ATOMIC_HELPER.casValue(this, null, value)) {
   complete(this);

代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

if (localValue == null) {
 if (future.isDone()) {
  Object value = getFutureValue(future);
  if (ATOMIC_HELPER.casValue(this, null, value)) {
   complete(this);

相关文章