OperatorTimeoutBase$TimeoutSubscriber.smali
.class final Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;
.super Lrx/Subscriber;
.source "OperatorTimeoutBase.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lrx/internal/operators/OperatorTimeoutBase;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "TimeoutSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lrx/Subscriber<",
"TT;>;"
}
.end annotation
# instance fields
.field actual:J
.field final arbiter:Lrx/internal/producers/ProducerArbiter;
.field final inner:Lrx/Scheduler$Worker;
.field final other:Lrx/Observable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Observable<",
"+TT;>;"
}
.end annotation
.end field
.field final serial:Lrx/subscriptions/SerialSubscription;
.field final serializedSubscriber:Lrx/observers/SerializedSubscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/observers/SerializedSubscriber<",
"TT;>;"
}
.end annotation
.end field
.field terminated:Z
.field final timeoutStub:Lrx/internal/operators/OperatorTimeoutBase$TimeoutStub;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/internal/operators/OperatorTimeoutBase$TimeoutStub<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Lrx/observers/SerializedSubscriber;Lrx/internal/operators/OperatorTimeoutBase$TimeoutStub;Lrx/subscriptions/SerialSubscription;Lrx/Observable;Lrx/Scheduler$Worker;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/observers/SerializedSubscriber<",
"TT;>;",
"Lrx/internal/operators/OperatorTimeoutBase$TimeoutStub<",
"TT;>;",
"Lrx/subscriptions/SerialSubscription;",
"Lrx/Observable<",
"+TT;>;",
"Lrx/Scheduler$Worker;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
.line 2
iput-object p1, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->serializedSubscriber:Lrx/observers/SerializedSubscriber;
.line 3
iput-object p2, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->timeoutStub:Lrx/internal/operators/OperatorTimeoutBase$TimeoutStub;
.line 4
iput-object p3, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->serial:Lrx/subscriptions/SerialSubscription;
.line 5
iput-object p4, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->other:Lrx/Observable;
.line 6
iput-object p5, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->inner:Lrx/Scheduler$Worker;
.line 7
new-instance p1, Lrx/internal/producers/ProducerArbiter;
invoke-direct {p1}, Lrx/internal/producers/ProducerArbiter;-><init>()V
iput-object p1, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->arbiter:Lrx/internal/producers/ProducerArbiter;
return-void
.end method
# virtual methods
.method public onCompleted()V
.registers 3
.line 1
monitor-enter p0
.line 2
:try_start_1
iget-boolean v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->terminated:Z
const/4 v1, 0x1
if-nez v0, :cond_9
.line 3
iput-boolean v1, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->terminated:Z
goto :goto_a
:cond_9
const/4 v1, 0x0
.line 4
:goto_a
monitor-exit p0
:try_end_b
.catchall {:try_start_1 .. :try_end_b} :catchall_18
if-eqz v1, :cond_17
.line 5
iget-object v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->serial:Lrx/subscriptions/SerialSubscription;
invoke-virtual {v0}, Lrx/subscriptions/SerialSubscription;->unsubscribe()V
.line 6
iget-object v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->serializedSubscriber:Lrx/observers/SerializedSubscriber;
invoke-virtual {v0}, Lrx/observers/SerializedSubscriber;->onCompleted()V
:cond_17
return-void
:catchall_18
move-exception v0
.line 7
:try_start_19
monitor-exit p0
:try_end_1a
.catchall {:try_start_19 .. :try_end_1a} :catchall_18
throw v0
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 4
.line 1
monitor-enter p0
.line 2
:try_start_1
iget-boolean v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->terminated:Z
const/4 v1, 0x1
if-nez v0, :cond_9
.line 3
iput-boolean v1, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->terminated:Z
goto :goto_a
:cond_9
const/4 v1, 0x0
.line 4
:goto_a
monitor-exit p0
:try_end_b
.catchall {:try_start_1 .. :try_end_b} :catchall_18
if-eqz v1, :cond_17
.line 5
iget-object v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->serial:Lrx/subscriptions/SerialSubscription;
invoke-virtual {v0}, Lrx/subscriptions/SerialSubscription;->unsubscribe()V
.line 6
iget-object v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->serializedSubscriber:Lrx/observers/SerializedSubscriber;
invoke-virtual {v0, p1}, Lrx/observers/SerializedSubscriber;->onError(Ljava/lang/Throwable;)V
:cond_17
return-void
:catchall_18
move-exception p1
.line 7
:try_start_19
monitor-exit p0
:try_end_1a
.catchall {:try_start_19 .. :try_end_1a} :catchall_18
throw p1
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
monitor-enter p0
.line 2
:try_start_1
iget-boolean v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->terminated:Z
if-nez v0, :cond_e
.line 3
iget-wide v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->actual:J
const-wide/16 v2, 0x1
add-long/2addr v0, v2
iput-wide v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->actual:J
const/4 v2, 0x1
goto :goto_11
.line 4
:cond_e
iget-wide v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->actual:J
const/4 v2, 0x0
.line 5
:goto_11
monitor-exit p0
:try_end_12
.catchall {:try_start_1 .. :try_end_12} :catchall_2d
if-eqz v2, :cond_2c
.line 6
iget-object v2, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->serializedSubscriber:Lrx/observers/SerializedSubscriber;
invoke-virtual {v2, p1}, Lrx/observers/SerializedSubscriber;->onNext(Ljava/lang/Object;)V
.line 7
iget-object v2, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->serial:Lrx/subscriptions/SerialSubscription;
iget-object v3, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->timeoutStub:Lrx/internal/operators/OperatorTimeoutBase$TimeoutStub;
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
iget-object v1, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->inner:Lrx/Scheduler$Worker;
invoke-interface {v3, p0, v0, p1, v1}, Lrx/functions/Func4;->call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lrx/Subscription;
invoke-virtual {v2, p1}, Lrx/subscriptions/SerialSubscription;->set(Lrx/Subscription;)V
:cond_2c
return-void
:catchall_2d
move-exception p1
.line 8
:try_start_2e
monitor-exit p0
:try_end_2f
.catchall {:try_start_2e .. :try_end_2f} :catchall_2d
throw p1
.end method
.method public onTimeout(J)V
.registers 7
.line 1
monitor-enter p0
.line 2
:try_start_1
iget-wide v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->actual:J
const/4 v2, 0x1
cmp-long v3, p1, v0
if-nez v3, :cond_f
iget-boolean p1, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->terminated:Z
if-nez p1, :cond_f
.line 3
iput-boolean v2, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->terminated:Z
goto :goto_10
:cond_f
const/4 v2, 0x0
.line 4
:goto_10
monitor-exit p0
:try_end_11
.catchall {:try_start_1 .. :try_end_11} :catchall_32
if-eqz v2, :cond_31
.line 5
iget-object p1, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->other:Lrx/Observable;
if-nez p1, :cond_22
.line 6
iget-object p1, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->serializedSubscriber:Lrx/observers/SerializedSubscriber;
new-instance p2, Ljava/util/concurrent/TimeoutException;
invoke-direct {p2}, Ljava/util/concurrent/TimeoutException;-><init>()V
invoke-virtual {p1, p2}, Lrx/observers/SerializedSubscriber;->onError(Ljava/lang/Throwable;)V
goto :goto_31
.line 7
:cond_22
new-instance p1, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber$1;
invoke-direct {p1, p0}, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber$1;-><init>(Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;)V
.line 8
iget-object p2, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->other:Lrx/Observable;
invoke-virtual {p2, p1}, Lrx/Observable;->unsafeSubscribe(Lrx/Subscriber;)Lrx/Subscription;
.line 9
iget-object p2, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->serial:Lrx/subscriptions/SerialSubscription;
invoke-virtual {p2, p1}, Lrx/subscriptions/SerialSubscription;->set(Lrx/Subscription;)V
:cond_31
:goto_31
return-void
:catchall_32
move-exception p1
.line 10
:try_start_33
monitor-exit p0
:try_end_34
.catchall {:try_start_33 .. :try_end_34} :catchall_32
throw p1
.end method
.method public setProducer(Lrx/Producer;)V
.registers 3
.line 1
iget-object v0, p0, Lrx/internal/operators/OperatorTimeoutBase$TimeoutSubscriber;->arbiter:Lrx/internal/producers/ProducerArbiter;
invoke-virtual {v0, p1}, Lrx/internal/producers/ProducerArbiter;->setProducer(Lrx/Producer;)V
return-void
.end method