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