U
- the type of the upstream Flowable.D
- the type of the downstream Flowable.S
- the type of the downstream subscriber.public abstract class FuseableSubscriber<U,D,S extends org.reactivestreams.Subscriber<? super D>>
extends java.lang.Object
implements io.reactivex.FlowableSubscriber<U>, io.reactivex.internal.fuseable.QueueSubscription<D>
Flowable
operators that allow fusion.Modifier and Type | Field and Description |
---|---|
protected @Nullable io.reactivex.internal.fuseable.QueueSubscription<U> |
queueSubscription |
protected int |
sourceMode |
protected S |
subscriber |
protected @Nullable org.reactivestreams.Subscription |
subscription |
Constructor and Description |
---|
FuseableSubscriber(S subscriber) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
void |
clear() |
boolean |
isEmpty() |
boolean |
offer(D value) |
boolean |
offer(D v1,
D v2) |
void |
onSubscribe(@NotNull org.reactivestreams.Subscription subscription) |
void |
request(long n) |
int |
requestFusion(int mode) |
@Nullable protected @Nullable org.reactivestreams.Subscription subscription
@Nullable protected @Nullable io.reactivex.internal.fuseable.QueueSubscription<U> queueSubscription
protected int sourceMode
public FuseableSubscriber(@NotNull S subscriber)
public void onSubscribe(@NotNull @NotNull org.reactivestreams.Subscription subscription)
public void request(long n)
request
in interface org.reactivestreams.Subscription
public void cancel()
cancel
in interface org.reactivestreams.Subscription
public int requestFusion(int mode)
requestFusion
in interface io.reactivex.internal.fuseable.QueueFuseable<D>
public boolean isEmpty()
isEmpty
in interface io.reactivex.internal.fuseable.SimpleQueue<D>
public void clear()
clear
in interface io.reactivex.internal.fuseable.SimpleQueue<D>
public final boolean offer(@NotNull D value)
offer
in interface io.reactivex.internal.fuseable.SimpleQueue<D>