.class abstract Lcom/google/common/util/concurrent/AggregateFutureState; .super Lcom/google/common/util/concurrent/AbstractFuture$TrustedFuture; .source "AggregateFutureState.java" # annotations .annotation build Lcom/google/common/annotations/GwtCompatible; emulated = true .end annotation .annotation runtime Lcom/google/common/util/concurrent/ElementTypesAreNonnullByDefault; .end annotation .annotation build Lcom/google/j2objc/annotations/ReflectionSupport; value = .enum Lcom/google/j2objc/annotations/ReflectionSupport$Level;->FULL:Lcom/google/j2objc/annotations/ReflectionSupport$Level; .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/common/util/concurrent/AggregateFutureState$SynchronizedAtomicHelper;, Lcom/google/common/util/concurrent/AggregateFutureState$SafeAtomicHelper;, Lcom/google/common/util/concurrent/AggregateFutureState$AtomicHelper; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Lcom/google/common/util/concurrent/AbstractFuture$TrustedFuture<", "TOutputT;>;" } .end annotation # static fields .field private static final ATOMIC_HELPER:Lcom/google/common/util/concurrent/AggregateFutureState$AtomicHelper; .field private static final log:Ljava/util/logging/Logger; # instance fields .field private volatile remaining:I .field private volatile seenExceptions:Ljava/util/Set; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Set<", "Ljava/lang/Throwable;", ">;" } .end annotation .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end field # direct methods .method public static constructor ()V .locals 5 .line 1 const-class v0, Lcom/google/common/util/concurrent/AggregateFutureState; invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v0 invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger; move-result-object v0 sput-object v0, Lcom/google/common/util/concurrent/AggregateFutureState;->log:Ljava/util/logging/Logger; const/4 v0, 0x0 .line 2 :try_start_0 new-instance v1, Lcom/google/common/util/concurrent/AggregateFutureState$SafeAtomicHelper; const-class v2, Lcom/google/common/util/concurrent/AggregateFutureState; const-class v3, Ljava/util/Set; const-string v4, "seenExceptions" .line 3 invoke-static {v2, v3, v4}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater; move-result-object v2 const-class v3, Lcom/google/common/util/concurrent/AggregateFutureState; const-string v4, "remaining" .line 4 invoke-static {v3, v4}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater; move-result-object v3 invoke-direct {v1, v2, v3}, Lcom/google/common/util/concurrent/AggregateFutureState$SafeAtomicHelper;->(Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception v1 .line 5 new-instance v2, Lcom/google/common/util/concurrent/AggregateFutureState$SynchronizedAtomicHelper; invoke-direct {v2, v0}, Lcom/google/common/util/concurrent/AggregateFutureState$SynchronizedAtomicHelper;->(Lcom/google/common/util/concurrent/AggregateFutureState$1;)V move-object v0, v1 move-object v1, v2 .line 6 :goto_0 sput-object v1, Lcom/google/common/util/concurrent/AggregateFutureState;->ATOMIC_HELPER:Lcom/google/common/util/concurrent/AggregateFutureState$AtomicHelper; if-eqz v0, :cond_0 .line 7 sget-object v1, Lcom/google/common/util/concurrent/AggregateFutureState;->log:Ljava/util/logging/Logger; sget-object v2, Ljava/util/logging/Level;->SEVERE:Ljava/util/logging/Level; const-string v3, "SafeAtomicHelper is broken!" invoke-virtual {v1, v2, v3, v0}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V :cond_0 return-void .end method .method public constructor (I)V .locals 1 .line 1 invoke-direct {p0}, Lcom/google/common/util/concurrent/AbstractFuture$TrustedFuture;->()V const/4 v0, 0x0 .line 2 iput-object v0, p0, Lcom/google/common/util/concurrent/AggregateFutureState;->seenExceptions:Ljava/util/Set; .line 3 iput p1, p0, Lcom/google/common/util/concurrent/AggregateFutureState;->remaining:I return-void .end method .method public static synthetic access$200(Lcom/google/common/util/concurrent/AggregateFutureState;)Ljava/util/Set; .locals 0 .line 1 iget-object p0, p0, Lcom/google/common/util/concurrent/AggregateFutureState;->seenExceptions:Ljava/util/Set; return-object p0 .end method .method public static synthetic access$202(Lcom/google/common/util/concurrent/AggregateFutureState;Ljava/util/Set;)Ljava/util/Set; .locals 0 .line 1 iput-object p1, p0, Lcom/google/common/util/concurrent/AggregateFutureState;->seenExceptions:Ljava/util/Set; return-object p1 .end method .method public static synthetic access$306(Lcom/google/common/util/concurrent/AggregateFutureState;)I .locals 1 .line 1 iget v0, p0, Lcom/google/common/util/concurrent/AggregateFutureState;->remaining:I add-int/lit8 v0, v0, -0x1 iput v0, p0, Lcom/google/common/util/concurrent/AggregateFutureState;->remaining:I return v0 .end method # virtual methods .method public abstract addInitialException(Ljava/util/Set;)V .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "Ljava/lang/Throwable;", ">;)V" } .end annotation .end method .method public final clearSeenExceptions()V .locals 1 const/4 v0, 0x0 .line 1 iput-object v0, p0, Lcom/google/common/util/concurrent/AggregateFutureState;->seenExceptions:Ljava/util/Set; return-void .end method .method public final decrementRemainingAndGet()I .locals 1 .line 1 sget-object v0, Lcom/google/common/util/concurrent/AggregateFutureState;->ATOMIC_HELPER:Lcom/google/common/util/concurrent/AggregateFutureState$AtomicHelper; invoke-virtual {v0, p0}, Lcom/google/common/util/concurrent/AggregateFutureState$AtomicHelper;->decrementAndGetRemainingCount(Lcom/google/common/util/concurrent/AggregateFutureState;)I move-result v0 return v0 .end method .method public final getOrInitSeenExceptions()Ljava/util/Set; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set<", "Ljava/lang/Throwable;", ">;" } .end annotation .line 1 iget-object v0, p0, Lcom/google/common/util/concurrent/AggregateFutureState;->seenExceptions:Ljava/util/Set; if-nez v0, :cond_0 .line 2 invoke-static {}, Lcom/google/common/collect/Sets;->newConcurrentHashSet()Ljava/util/Set; move-result-object v0 .line 3 invoke-virtual {p0, v0}, Lcom/google/common/util/concurrent/AggregateFutureState;->addInitialException(Ljava/util/Set;)V .line 4 sget-object v1, Lcom/google/common/util/concurrent/AggregateFutureState;->ATOMIC_HELPER:Lcom/google/common/util/concurrent/AggregateFutureState$AtomicHelper; const/4 v2, 0x0 invoke-virtual {v1, p0, v2, v0}, Lcom/google/common/util/concurrent/AggregateFutureState$AtomicHelper;->compareAndSetSeenExceptions(Lcom/google/common/util/concurrent/AggregateFutureState;Ljava/util/Set;Ljava/util/Set;)V .line 5 iget-object v0, p0, Lcom/google/common/util/concurrent/AggregateFutureState;->seenExceptions:Ljava/util/Set; invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object; check-cast v0, Ljava/util/Set; :cond_0 return-object v0 .end method