T
- Type of the result of this Subscriber
.public final class SequentialSingleSubscriberFunction<T> extends java.lang.Object implements java.util.function.Function<SingleSource.Subscriber<? super T>,SingleSource.Subscriber<? super T>>
SingleSource.Subscriber
s to be sequentially subscribed to a TestSingle
. Attempts to subscribe
concurrently will throw an exception.Constructor and Description |
---|
SequentialSingleSubscriberFunction() |
Modifier and Type | Method and Description |
---|---|
SingleSource.Subscriber<? super T> |
apply(SingleSource.Subscriber<? super T> subscriber) |
boolean |
isSubscribed()
Returns
true if a SingleSource.Subscriber is currently active (has been subscribed, and not terminated), or
false otherwise. |
SingleSource.Subscriber<? super T> |
subscriber()
Returns the most recently subscribed
SingleSource.Subscriber . |
public SingleSource.Subscriber<? super T> apply(SingleSource.Subscriber<? super T> subscriber)
apply
in interface java.util.function.Function<SingleSource.Subscriber<? super T>,SingleSource.Subscriber<? super T>>
@Nullable public SingleSource.Subscriber<? super T> subscriber()
SingleSource.Subscriber
.SingleSource.Subscriber
.public boolean isSubscribed()
true
if a SingleSource.Subscriber
is currently active (has been subscribed, and not terminated), or
false
otherwise.true
if a SingleSource.Subscriber
is currently active (has been subscribed, and not terminated), or
false
otherwise.