.class final Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber; .super Ljava/util/concurrent/atomic/AtomicBoolean; .source "FlowableRefCount.java" # interfaces .implements Lkh/o; .implements Lok/e; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lio/reactivex/internal/operators/flowable/FlowableRefCount; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "RefCountSubscriber" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/util/concurrent/atomic/AtomicBoolean;", "Lkh/o<", "TT;>;", "Lok/e;" } .end annotation # static fields .field private static final serialVersionUID:J = -0x66f7ddf0554a95a7L # instance fields .field public final connection:Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefConnection; .field public final downstream:Lok/d; .annotation system Ldalvik/annotation/Signature; value = { "Lok/d<", "-TT;>;" } .end annotation .end field .field public final parent:Lio/reactivex/internal/operators/flowable/FlowableRefCount; .annotation system Ldalvik/annotation/Signature; value = { "Lio/reactivex/internal/operators/flowable/FlowableRefCount<", "TT;>;" } .end annotation .end field .field public upstream:Lok/e; # direct methods .method public constructor (Lok/d;Lio/reactivex/internal/operators/flowable/FlowableRefCount;Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefConnection;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lok/d<", "-TT;>;", "Lio/reactivex/internal/operators/flowable/FlowableRefCount<", "TT;>;", "Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefConnection;", ")V" } .end annotation .line 1 invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;->()V .line 2 iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->downstream:Lok/d; .line 3 iput-object p2, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->parent:Lio/reactivex/internal/operators/flowable/FlowableRefCount; .line 4 iput-object p3, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->connection:Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefConnection; return-void .end method # virtual methods .method public cancel()V .locals 2 .line 1 iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->upstream:Lok/e; invoke-interface {v0}, Lok/e;->cancel()V const/4 v0, 0x0 const/4 v1, 0x1 .line 2 invoke-virtual {p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z move-result v0 if-eqz v0, :cond_0 .line 3 iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->parent:Lio/reactivex/internal/operators/flowable/FlowableRefCount; iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->connection:Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefConnection; invoke-virtual {v0, v1}, Lio/reactivex/internal/operators/flowable/FlowableRefCount;->I8(Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefConnection;)V :cond_0 return-void .end method .method public onComplete()V .locals 2 const/4 v0, 0x0 const/4 v1, 0x1 .line 1 invoke-virtual {p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z move-result v0 if-eqz v0, :cond_0 .line 2 iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->parent:Lio/reactivex/internal/operators/flowable/FlowableRefCount; iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->connection:Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefConnection; invoke-virtual {v0, v1}, Lio/reactivex/internal/operators/flowable/FlowableRefCount;->J8(Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefConnection;)V .line 3 iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->downstream:Lok/d; invoke-interface {v0}, Lok/d;->onComplete()V :cond_0 return-void .end method .method public onError(Ljava/lang/Throwable;)V .locals 2 const/4 v0, 0x0 const/4 v1, 0x1 .line 1 invoke-virtual {p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z move-result v0 if-eqz v0, :cond_0 .line 2 iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->parent:Lio/reactivex/internal/operators/flowable/FlowableRefCount; iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->connection:Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefConnection; invoke-virtual {v0, v1}, Lio/reactivex/internal/operators/flowable/FlowableRefCount;->J8(Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefConnection;)V .line 3 iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->downstream:Lok/d; invoke-interface {v0, p1}, Lok/d;->onError(Ljava/lang/Throwable;)V goto :goto_0 .line 4 :cond_0 invoke-static {p1}, Lwh/a;->Y(Ljava/lang/Throwable;)V :goto_0 return-void .end method .method public onNext(Ljava/lang/Object;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)V" } .end annotation .line 1 iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->downstream:Lok/d; invoke-interface {v0, p1}, Lok/d;->onNext(Ljava/lang/Object;)V return-void .end method .method public onSubscribe(Lok/e;)V .locals 1 .line 1 iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->upstream:Lok/e; invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->validate(Lok/e;Lok/e;)Z move-result v0 if-eqz v0, :cond_0 .line 2 iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->upstream:Lok/e; .line 3 iget-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->downstream:Lok/d; invoke-interface {p1, p0}, Lok/d;->onSubscribe(Lok/e;)V :cond_0 return-void .end method .method public request(J)V .locals 1 .line 1 iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRefCount$RefCountSubscriber;->upstream:Lok/e; invoke-interface {v0, p1, p2}, Lok/e;->request(J)V return-void .end method