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