ObservableRefCount$RefConnection.smali
.class final Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "ObservableRefCount.java"
# interfaces
.implements Ljava/lang/Runnable;
.implements Lio/reactivex/b/g;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/observable/ObservableRefCount;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "RefConnection"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/disposables/b;",
">;",
"Ljava/lang/Runnable;",
"Lio/reactivex/b/g<",
"Lio/reactivex/disposables/b;",
">;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x3f2c4fd6dc101621L
# instance fields
.field connected:Z
.field disconnectedEarly:Z
.field final parent:Lio/reactivex/internal/operators/observable/ObservableRefCount;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/internal/operators/observable/ObservableRefCount<",
"*>;"
}
.end annotation
.end field
.field subscriberCount:J
.field timer:Lio/reactivex/disposables/b;
# direct methods
.method constructor <init>(Lio/reactivex/internal/operators/observable/ObservableRefCount;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/internal/operators/observable/ObservableRefCount<",
"*>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->parent:Lio/reactivex/internal/operators/observable/ObservableRefCount;
return-void
.end method
# virtual methods
.method public accept(Lio/reactivex/disposables/b;)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 2
invoke-static {p0, p1}, Lio/reactivex/internal/disposables/DisposableHelper;->replace(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/disposables/b;)Z
.line 3
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->parent:Lio/reactivex/internal/operators/observable/ObservableRefCount;
monitor-enter v0
.line 4
:try_start_6
iget-boolean v1, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->disconnectedEarly:Z
if-eqz v1, :cond_13
.line 5
iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->parent:Lio/reactivex/internal/operators/observable/ObservableRefCount;
iget-object v1, v1, Lio/reactivex/internal/operators/observable/ObservableRefCount;->a:Lio/reactivex/d/a;
check-cast v1, Lio/reactivex/internal/disposables/c;
invoke-interface {v1, p1}, Lio/reactivex/internal/disposables/c;->a(Lio/reactivex/disposables/b;)V
.line 6
:cond_13
monitor-exit v0
return-void
:catchall_15
move-exception p1
monitor-exit v0
:try_end_17
.catchall {:try_start_6 .. :try_end_17} :catchall_15
throw p1
.end method
.method public bridge synthetic accept(Ljava/lang/Object;)V
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
check-cast p1, Lio/reactivex/disposables/b;
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->accept(Lio/reactivex/disposables/b;)V
return-void
.end method
.method public run()V
.registers 2
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->parent:Lio/reactivex/internal/operators/observable/ObservableRefCount;
invoke-virtual {v0, p0}, Lio/reactivex/internal/operators/observable/ObservableRefCount;->c(Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;)V
return-void
.end method