abstract class com.google.common.util.concurrent.AggregateFuture extends com.google.common.util.concurrent.AggregateFutureState
{
private static final java.util.logging.Logger logger;
private com.google.common.collect.ImmutableCollection futures;
private final boolean allMustSucceed;
private final boolean collectsValues;
void <init>(com.google.common.collect.ImmutableCollection, boolean, boolean)
{
com.google.common.util.concurrent.AggregateFuture v;
int v;
com.google.common.collect.ImmutableCollection v;
java.lang.Object v;
boolean v, v;
v := @this: com.google.common.util.concurrent.AggregateFuture;
v := @parameter: com.google.common.collect.ImmutableCollection;
v := @parameter: boolean;
v := @parameter: boolean;
v = virtualinvoke v.<com.google.common.collect.ImmutableCollection: int size()>();
specialinvoke v.<com.google.common.util.concurrent.AggregateFutureState: void <init>(int)>(v);
v = staticinvoke <com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
v.<com.google.common.util.concurrent.AggregateFuture: com.google.common.collect.ImmutableCollection futures> = v;
v.<com.google.common.util.concurrent.AggregateFuture: boolean allMustSucceed> = v;
v.<com.google.common.util.concurrent.AggregateFuture: boolean collectsValues> = v;
return;
}
protected final void afterDone()
{
com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason v;
com.google.common.collect.ImmutableCollection v;
com.google.common.util.concurrent.AggregateFuture v;
java.lang.Object v;
com.google.common.collect.UnmodifiableIterator v;
boolean v, v, v, v, v;
v := @this: com.google.common.util.concurrent.AggregateFuture;
specialinvoke v.<com.google.common.util.concurrent.AggregateFutureState: void afterDone()>();
v = v.<com.google.common.util.concurrent.AggregateFuture: com.google.common.collect.ImmutableCollection futures>;
v = <com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason: com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason OUTPUT_FUTURE_DONE>;
virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: void releaseResources(com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason)>(v);
v = virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: boolean isCancelled()>();
if v == null goto label;
v = 1;
goto label;
label:
v = 0;
label:
v = v & v;
if v == 0 goto label;
v = virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: boolean wasInterrupted()>();
v = virtualinvoke v.<com.google.common.collect.ImmutableCollection: com.google.common.collect.UnmodifiableIterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
interfaceinvoke v.<java.util.concurrent.Future: boolean cancel(boolean)>(v);
goto label;
label:
return;
}
protected final java.lang.String pendingToString()
{
com.google.common.collect.ImmutableCollection v;
com.google.common.util.concurrent.AggregateFuture v;
int v, v;
java.lang.StringBuilder v;
java.lang.String v, v, v, v;
v := @this: com.google.common.util.concurrent.AggregateFuture;
v = v.<com.google.common.util.concurrent.AggregateFuture: com.google.common.collect.ImmutableCollection futures>;
if v == null goto label;
v = staticinvoke <java.lang.String: java.lang.String valueOf(java.lang.Object)>(v);
v = staticinvoke <java.lang.String: java.lang.String valueOf(java.lang.Object)>(v);
v = virtualinvoke v.<java.lang.String: int length()>();
v = 8 + v;
specialinvoke v.<java.lang.StringBuilder: void <init>(int)>(v);
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("futures=\u0001");
return v;
label:
v = specialinvoke v.<com.google.common.util.concurrent.AggregateFutureState: java.lang.String pendingToString()>();
return v;
}
final void init()
{
com.google.common.collect.ImmutableCollection v, v, v, v, v;
com.google.common.util.concurrent.AggregateFuture v;
int v, v;
boolean v, v, v, v, v;
com.google.common.util.concurrent.AggregateFuture$1 v;
java.util.concurrent.Executor v, v;
com.google.common.util.concurrent.AggregateFuture$2 v;
java.lang.Object v, v;
com.google.common.collect.UnmodifiableIterator v, v;
v := @this: com.google.common.util.concurrent.AggregateFuture;
v = v.<com.google.common.util.concurrent.AggregateFuture: com.google.common.collect.ImmutableCollection futures>;
virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = v.<com.google.common.util.concurrent.AggregateFuture: com.google.common.collect.ImmutableCollection futures>;
v = virtualinvoke v.<com.google.common.collect.ImmutableCollection: boolean isEmpty()>();
if v == 0 goto label;
virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: void handleAllCompleted()>();
return;
label:
v = v.<com.google.common.util.concurrent.AggregateFuture: boolean allMustSucceed>;
if v == 0 goto label;
v = 0;
v = v.<com.google.common.util.concurrent.AggregateFuture: com.google.common.collect.ImmutableCollection futures>;
v = virtualinvoke v.<com.google.common.collect.ImmutableCollection: com.google.common.collect.UnmodifiableIterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = v;
v = v + 1;
v = new com.google.common.util.concurrent.AggregateFuture$1;
specialinvoke v.<com.google.common.util.concurrent.AggregateFuture$1: void <init>(com.google.common.util.concurrent.AggregateFuture,com.google.common.util.concurrent.ListenableFuture,int)>(v, v, v);
v = staticinvoke <com.google.common.util.concurrent.MoreExecutors: java.util.concurrent.Executor directExecutor()>();
interfaceinvoke v.<com.google.common.util.concurrent.ListenableFuture: void addListener(java.lang.Runnable,java.util.concurrent.Executor)>(v, v);
goto label;
label:
v = v.<com.google.common.util.concurrent.AggregateFuture: boolean collectsValues>;
if v == 0 goto label;
v = v.<com.google.common.util.concurrent.AggregateFuture: com.google.common.collect.ImmutableCollection futures>;
goto label;
label:
v = null;
label:
v = new com.google.common.util.concurrent.AggregateFuture$2;
specialinvoke v.<com.google.common.util.concurrent.AggregateFuture$2: void <init>(com.google.common.util.concurrent.AggregateFuture,com.google.common.collect.ImmutableCollection)>(v, v);
v = v.<com.google.common.util.concurrent.AggregateFuture: com.google.common.collect.ImmutableCollection futures>;
v = virtualinvoke v.<com.google.common.collect.ImmutableCollection: com.google.common.collect.UnmodifiableIterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = staticinvoke <com.google.common.util.concurrent.MoreExecutors: java.util.concurrent.Executor directExecutor()>();
interfaceinvoke v.<com.google.common.util.concurrent.ListenableFuture: void addListener(java.lang.Runnable,java.util.concurrent.Executor)>(v, v);
goto label;
label:
return;
}
private void handleException(java.lang.Throwable)
{
java.lang.Throwable v;
com.google.common.util.concurrent.AggregateFuture v;
java.util.Set v;
boolean v, v, v, v;
v := @this: com.google.common.util.concurrent.AggregateFuture;
v := @parameter: java.lang.Throwable;
staticinvoke <com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
v = v.<com.google.common.util.concurrent.AggregateFuture: boolean allMustSucceed>;
if v == 0 goto label;
v = virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: boolean setException(java.lang.Throwable)>(v);
if v != 0 goto label;
v = virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: java.util.Set getOrInitSeenExceptions()>();
v = staticinvoke <com.google.common.util.concurrent.AggregateFuture: boolean addCausalChain(java.util.Set,java.lang.Throwable)>(v, v);
if v == 0 goto label;
staticinvoke <com.google.common.util.concurrent.AggregateFuture: void log(java.lang.Throwable)>(v);
return;
label:
v = v instanceof java.lang.Error;
if v == 0 goto label;
staticinvoke <com.google.common.util.concurrent.AggregateFuture: void log(java.lang.Throwable)>(v);
label:
return;
}
private static void log(java.lang.Throwable)
{
java.lang.Throwable v;
java.lang.String v;
java.util.logging.Logger v;
boolean v;
java.util.logging.Level v;
v := @parameter: java.lang.Throwable;
v = v instanceof java.lang.Error;
if v == 0 goto label;
v = "Input Future failed with Error";
goto label;
label:
v = "Got more than one input Future failure. Logging failures after the first";
label:
v = <com.google.common.util.concurrent.AggregateFuture: java.util.logging.Logger logger>;
v = <java.util.logging.Level: java.util.logging.Level SEVERE>;
virtualinvoke v.<java.util.logging.Logger: void log(java.util.logging.Level,java.lang.String,java.lang.Throwable)>(v, v, v);
return;
}
final void addInitialException(java.util.Set)
{
java.lang.Throwable v;
com.google.common.util.concurrent.AggregateFuture v;
java.util.Set v;
java.lang.Object v;
boolean v;
v := @this: com.google.common.util.concurrent.AggregateFuture;
v := @parameter: java.util.Set;
staticinvoke <com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
v = virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: boolean isCancelled()>();
if v != 0 goto label;
v = virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: java.lang.Throwable tryInternalFastPathGetFailure()>();
v = staticinvoke <java.util.Objects: java.lang.Object requireNonNull(java.lang.Object)>(v);
staticinvoke <com.google.common.util.concurrent.AggregateFuture: boolean addCausalChain(java.util.Set,java.lang.Throwable)>(v, v);
label:
return;
}
private void collectValueFromNonCancelledFuture(int, java.util.concurrent.Future)
{
java.lang.Throwable v, v;
java.util.concurrent.ExecutionException v;
java.util.concurrent.Future v;
com.google.common.util.concurrent.AggregateFuture v;
int v;
java.lang.Object v;
v := @this: com.google.common.util.concurrent.AggregateFuture;
v := @parameter: int;
v := @parameter: java.util.concurrent.Future;
label:
v = staticinvoke <com.google.common.util.concurrent.Futures: java.lang.Object getDone(java.util.concurrent.Future)>(v);
virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: void collectOneValue(int,java.lang.Object)>(v, v);
label:
goto label;
label:
v := @caughtexception;
v = virtualinvoke v.<java.util.concurrent.ExecutionException: java.lang.Throwable getCause()>();
specialinvoke v.<com.google.common.util.concurrent.AggregateFuture: void handleException(java.lang.Throwable)>(v);
goto label;
label:
v := @caughtexception;
specialinvoke v.<com.google.common.util.concurrent.AggregateFuture: void handleException(java.lang.Throwable)>(v);
label:
return;
catch java.util.concurrent.ExecutionException from label to label with label;
catch java.lang.Throwable from label to label with label;
}
private void decrementCountAndMaybeComplete(com.google.common.collect.ImmutableCollection)
{
com.google.common.util.concurrent.AggregateFuture v;
int v;
com.google.common.collect.ImmutableCollection v;
boolean v;
v := @this: com.google.common.util.concurrent.AggregateFuture;
v := @parameter: com.google.common.collect.ImmutableCollection;
v = virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: int decrementRemainingAndGet()>();
if v < 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <com.google.common.base.Preconditions: void checkState(boolean,java.lang.Object)>(v, "Less than 0 remaining futures");
if v != 0 goto label;
specialinvoke v.<com.google.common.util.concurrent.AggregateFuture: void processCompleted(com.google.common.collect.ImmutableCollection)>(v);
label:
return;
}
private void processCompleted(com.google.common.collect.ImmutableCollection)
{
com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason v;
com.google.common.collect.ImmutableCollection v;
com.google.common.util.concurrent.AggregateFuture v;
int v;
java.lang.Object v;
com.google.common.collect.UnmodifiableIterator v;
boolean v, v;
v := @this: com.google.common.util.concurrent.AggregateFuture;
v := @parameter: com.google.common.collect.ImmutableCollection;
if v == null goto label;
v = 0;
v = virtualinvoke v.<com.google.common.collect.ImmutableCollection: com.google.common.collect.UnmodifiableIterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<java.util.concurrent.Future: boolean isCancelled()>();
if v != 0 goto label;
specialinvoke v.<com.google.common.util.concurrent.AggregateFuture: void collectValueFromNonCancelledFuture(int,java.util.concurrent.Future)>(v, v);
label:
v = v + 1;
goto label;
label:
virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: void clearSeenExceptions()>();
virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: void handleAllCompleted()>();
v = <com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason: com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason ALL_INPUT_FUTURES_PROCESSED>;
virtualinvoke v.<com.google.common.util.concurrent.AggregateFuture: void releaseResources(com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason)>(v);
return;
}
void releaseResources(com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason)
{
com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason v;
com.google.common.util.concurrent.AggregateFuture v;
v := @this: com.google.common.util.concurrent.AggregateFuture;
v := @parameter: com.google.common.util.concurrent.AggregateFuture$ReleaseResourcesReason;
staticinvoke <com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
v.<com.google.common.util.concurrent.AggregateFuture: com.google.common.collect.ImmutableCollection futures> = null;
return;
}
abstract void collectOneValue(int, java.lang.Object);
abstract void handleAllCompleted();
private static boolean addCausalChain(java.util.Set, java.lang.Throwable)
{
java.lang.Throwable v, v;
java.util.Set v;
boolean v;
v := @parameter: java.util.Set;
v := @parameter: java.lang.Throwable;
v = v;
label:
if v == null goto label;
v = interfaceinvoke v.<java.util.Set: boolean add(java.lang.Object)>(v);
if v != 0 goto label;
return 0;
label:
v = virtualinvoke v.<java.lang.Throwable: java.lang.Throwable getCause()>();
goto label;
label:
return 1;
}
static void <clinit>()
{
java.lang.Class v;
java.lang.String v;
java.util.logging.Logger v;
v = class "Lcom/google/common/util/concurrent/AggregateFuture;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = staticinvoke <java.util.logging.Logger: java.util.logging.Logger getLogger(java.lang.String)>(v);
<com.google.common.util.concurrent.AggregateFuture: java.util.logging.Logger logger> = v;
return;
}
}