ParallelFromPublisher.smali
.class public final Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;
.super Lio/reactivex/parallel/ParallelFlowable;
.source "ParallelFromPublisher.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/internal/operators/parallel/ParallelFromPublisher$ParallelDispatcher;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/parallel/ParallelFlowable<",
"TT;>;"
}
.end annotation
# instance fields
.field final parallelism:I
.field final prefetch:I
.field final source:Lorg/reactivestreams/Publisher;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lorg/reactivestreams/Publisher<",
"+TT;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lorg/reactivestreams/Publisher;II)V
.registers 4
.param p2, "parallelism" # I
.param p3, "prefetch" # I
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/reactivestreams/Publisher<",
"+TT;>;II)V"
}
.end annotation
.line 41
.local p0, "this":Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;, "Lio/reactivex/internal/operators/parallel/ParallelFromPublisher<TT;>;"
.local p1, "source":Lorg/reactivestreams/Publisher;, "Lorg/reactivestreams/Publisher<+TT;>;"
invoke-direct {p0}, Lio/reactivex/parallel/ParallelFlowable;-><init>()V
.line 42
iput-object p1, p0, Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;->source:Lorg/reactivestreams/Publisher;
.line 43
iput p2, p0, Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;->parallelism:I
.line 44
iput p3, p0, Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;->prefetch:I
.line 45
return-void
.end method
# virtual methods
.method public parallelism()I
.registers 2
.line 49
.local p0, "this":Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;, "Lio/reactivex/internal/operators/parallel/ParallelFromPublisher<TT;>;"
iget v0, p0, Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;->parallelism:I
return v0
.end method
.method public subscribe([Lorg/reactivestreams/Subscriber;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Lorg/reactivestreams/Subscriber<",
"-TT;>;)V"
}
.end annotation
.line 54
.local p0, "this":Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;, "Lio/reactivex/internal/operators/parallel/ParallelFromPublisher<TT;>;"
.local p1, "subscribers":[Lorg/reactivestreams/Subscriber;, "[Lorg/reactivestreams/Subscriber<-TT;>;"
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;->validate([Lorg/reactivestreams/Subscriber;)Z
move-result v0
if-nez v0, :cond_7
.line 55
return-void
.line 58
:cond_7
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;->source:Lorg/reactivestreams/Publisher;
new-instance v1, Lio/reactivex/internal/operators/parallel/ParallelFromPublisher$ParallelDispatcher;
iget v2, p0, Lio/reactivex/internal/operators/parallel/ParallelFromPublisher;->prefetch:I
invoke-direct {v1, p1, v2}, Lio/reactivex/internal/operators/parallel/ParallelFromPublisher$ParallelDispatcher;-><init>([Lorg/reactivestreams/Subscriber;I)V
invoke-interface {v0, v1}, Lorg/reactivestreams/Publisher;->subscribe(Lorg/reactivestreams/Subscriber;)V
.line 59
return-void
.end method