Top Description Fields Constructors Methods
reactor.core.publisher

pack-priv final Class BlockingMonoSubscriber<T>

extends BlockingSingleSubscriber<T>
Class Inheritance
Type Parameters
<T>
the value type
Imports
reactor.util.context.Context

Blocks assuming the upstream is a Mono, until it signals its value or completes. Compared to BlockingFirstSubscriber, this variant doesn't cancel the upstream in onNext.
See Also
https://github.com/reactor/reactive-streams-commons

Field Summary

Inherited from reactor.core.publisher.BlockingSingleSubscriber:
cancelledcontexterrorsvalue

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onError(Throwable
the throwable signaled
t
)

Implements org.reactivestreams.Subscriber.onError.

Failed terminal state.
public void
onNext(T
the element signaled
t
)

Implements org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).
public String
stepName()

Overrides default reactor.core.Scannable.stepName.

Return a meaningful String representation of this Scannable in its chain of parents() and actuals().
Inherited from reactor.core.publisher.BlockingSingleSubscriber:
blockingGetblockingGetcurrentContextdisposeisDisposedonCompleteonSubscribescanUnsafe

Constructor Detail

BlockingMonoSubscriberback to summary
public BlockingMonoSubscriber(Context context)

Method Detail

onErrorback to summary
public void onError(Throwable t)

Implements org.reactivestreams.Subscriber.onError.

Doc from org.reactivestreams.Subscriber.onError.

Failed terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Parameters
t:Throwable

the throwable signaled

Annotations
@Override
onNextback to summary
public void onNext(T t)

Implements org.reactivestreams.Subscriber.onNext.

Doc from org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).

Parameters
t:T

the element signaled

Annotations
@Override
stepNameback to summary
public String stepName()

Overrides default reactor.core.Scannable.stepName.

Doc from reactor.core.Scannable.stepName.

Return a meaningful String representation of this Scannable in its chain of parents() and actuals().

Annotations
@Override