OperatorRetryWithPredicate.smali
.class public final Lrx/internal/operators/OperatorRetryWithPredicate;
.super Ljava/lang/Object;
.source "OperatorRetryWithPredicate.java"
# interfaces
.implements Lrx/Observable$Operator;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lrx/internal/operators/OperatorRetryWithPredicate$SourceSubscriber;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/Observable$Operator<",
"TT;",
"Lrx/Observable<",
"TT;>;>;"
}
.end annotation
# instance fields
.field final predicate:Lrx/functions/Func2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Func2<",
"Ljava/lang/Integer;",
"Ljava/lang/Throwable;",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lrx/functions/Func2;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/functions/Func2<",
"Ljava/lang/Integer;",
"Ljava/lang/Throwable;",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lrx/internal/operators/OperatorRetryWithPredicate;->predicate:Lrx/functions/Func2;
return-void
.end method
# virtual methods
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
.registers 2
.line 1
check-cast p1, Lrx/Subscriber;
invoke-virtual {p0, p1}, Lrx/internal/operators/OperatorRetryWithPredicate;->call(Lrx/Subscriber;)Lrx/Subscriber;
move-result-object p1
return-object p1
.end method
.method public call(Lrx/Subscriber;)Lrx/Subscriber;
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;)",
"Lrx/Subscriber<",
"-",
"Lrx/Observable<",
"TT;>;>;"
}
.end annotation
.line 2
invoke-static {}, Lrx/schedulers/Schedulers;->trampoline()Lrx/Scheduler;
move-result-object v0
invoke-virtual {v0}, Lrx/Scheduler;->createWorker()Lrx/Scheduler$Worker;
move-result-object v4
.line 3
invoke-virtual {p1, v4}, Lrx/Subscriber;->add(Lrx/Subscription;)V
.line 4
new-instance v5, Lrx/subscriptions/SerialSubscription;
invoke-direct {v5}, Lrx/subscriptions/SerialSubscription;-><init>()V
.line 5
invoke-virtual {p1, v5}, Lrx/Subscriber;->add(Lrx/Subscription;)V
.line 6
new-instance v6, Lrx/internal/producers/ProducerArbiter;
invoke-direct {v6}, Lrx/internal/producers/ProducerArbiter;-><init>()V
.line 7
invoke-virtual {p1, v6}, Lrx/Subscriber;->setProducer(Lrx/Producer;)V
.line 8
new-instance v0, Lrx/internal/operators/OperatorRetryWithPredicate$SourceSubscriber;
iget-object v3, p0, Lrx/internal/operators/OperatorRetryWithPredicate;->predicate:Lrx/functions/Func2;
move-object v1, v0
move-object v2, p1
invoke-direct/range {v1 .. v6}, Lrx/internal/operators/OperatorRetryWithPredicate$SourceSubscriber;-><init>(Lrx/Subscriber;Lrx/functions/Func2;Lrx/Scheduler$Worker;Lrx/subscriptions/SerialSubscription;Lrx/internal/producers/ProducerArbiter;)V
return-object v0
.end method