OperatorSubscribeOn$SubscribeOnSubscriber.smali
.class final Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;
.super Lrx/Subscriber;
.source "OperatorSubscribeOn.java"
# interfaces
.implements Lrx/functions/Action0;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lrx/internal/operators/OperatorSubscribeOn;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "SubscribeOnSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lrx/Subscriber<",
"TT;>;",
"Lrx/functions/Action0;"
}
.end annotation
# instance fields
.field final actual:Lrx/Subscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"-TT;>;"
}
.end annotation
.end field
.field final requestOn:Z
.field source:Lrx/Observable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Observable<",
"TT;>;"
}
.end annotation
.end field
.field t:Ljava/lang/Thread;
.field final worker:Lrx/Scheduler$Worker;
# direct methods
.method constructor <init>(Lrx/Subscriber;ZLrx/Scheduler$Worker;Lrx/Observable;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;Z",
"Lrx/Scheduler$Worker;",
"Lrx/Observable<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
.line 2
iput-object p1, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->actual:Lrx/Subscriber;
.line 3
iput-boolean p2, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->requestOn:Z
.line 4
iput-object p3, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->worker:Lrx/Scheduler$Worker;
.line 5
iput-object p4, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->source:Lrx/Observable;
return-void
.end method
# virtual methods
.method public call()V
.registers 3
.line 1
iget-object v0, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->source:Lrx/Observable;
const/4 v1, 0x0
.line 2
iput-object v1, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->source:Lrx/Observable;
.line 3
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
iput-object v1, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->t:Ljava/lang/Thread;
.line 4
invoke-virtual {v0, p0}, Lrx/Observable;->unsafeSubscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public onCompleted()V
.registers 3
.line 1
:try_start_0
iget-object v0, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->actual:Lrx/Subscriber;
invoke-interface {v0}, Lrx/Observer;->onCompleted()V
:try_end_5
.catchall {:try_start_0 .. :try_end_5} :catchall_b
.line 2
iget-object v0, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->worker:Lrx/Scheduler$Worker;
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
return-void
:catchall_b
move-exception v0
iget-object v1, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->worker:Lrx/Scheduler$Worker;
invoke-interface {v1}, Lrx/Subscription;->unsubscribe()V
throw v0
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.line 1
:try_start_0
iget-object v0, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->actual:Lrx/Subscriber;
invoke-interface {v0, p1}, Lrx/Observer;->onError(Ljava/lang/Throwable;)V
:try_end_5
.catchall {:try_start_0 .. :try_end_5} :catchall_b
.line 2
iget-object p1, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->worker:Lrx/Scheduler$Worker;
invoke-interface {p1}, Lrx/Subscription;->unsubscribe()V
return-void
:catchall_b
move-exception p1
iget-object v0, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->worker:Lrx/Scheduler$Worker;
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
throw p1
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->actual:Lrx/Subscriber;
invoke-interface {v0, p1}, Lrx/Observer;->onNext(Ljava/lang/Object;)V
return-void
.end method
.method public setProducer(Lrx/Producer;)V
.registers 4
.line 1
iget-object v0, p0, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;->actual:Lrx/Subscriber;
new-instance v1, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber$1;
invoke-direct {v1, p0, p1}, Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber$1;-><init>(Lrx/internal/operators/OperatorSubscribeOn$SubscribeOnSubscriber;Lrx/Producer;)V
invoke-virtual {v0, v1}, Lrx/Subscriber;->setProducer(Lrx/Producer;)V
return-void
.end method