Top Fields Constructors Methods
reactor.core.publisher

pack-priv final Class MonoFirstWithValue<T>

extends Mono<T>
implements SourceProducer<T>
Class Inheritance
All Implemented Interfaces
reactor.core.publisher.SourceProducer, org.reactivestreams.Publisher, reactor.core.Scannable
Imports
org.reactivestreams.Publisher, reactor.core.CoreSubscriber, reactor.util.annotation.Nullable, java.util.Iterator, .Objects

Field Summary

Modifier and TypeField and Description
pack-priv final Mono<? extends T>[]
pack-priv final Iterable<? extends Mono<? extends T>>
Inherited from reactor.core.publisher.Mono:
EQUALS_BIPREDICATE

Constructor Summary

AccessConstructor and Description
private
MonoFirstWithValue(Mono<? extends T>[] array)

pack-priv
MonoFirstWithValue(Mono<? extends T> first, Mono<? extends T>... others)

pack-priv
MonoFirstWithValue(Iterable<? extends Mono<? extends T>> iterable)

Method Summary

Modifier and TypeMethod and Description
pack-priv final MonoFirstWithValue<T>

Returns:

the new MonoFirstWithValue instance or null if new sources cannot be added (backed by an Iterable)
firstValuedAdditionalSources
(Mono<? extends T>...
the new sources to merge with the current sources
others
)

Returns a new instance which has the additional sources to be flattened together with the current array of sources.

public Object
scanUnsafe(Scannable.Attr<T>
a Attr to resolve for the component.
key
)

Overrides default reactor.core.publisher.SourceProducer.scanUnsafe.

This method is used internally by components to define their key-value mappings in a single place.
public void
subscribe(CoreSubscriber<? super T>
the Subscriber interested into the published sequence
actual
)

Implements abstract reactor.core.publisher.Mono.subscribe.

Implements reactor.core.CorePublisher.subscribe.

An internal Publisher#subscribe(Subscriber) that will bypass Hooks#onLastOperator(Function) pointcut.
Inherited from reactor.core.publisher.Mono:
andasblockblockblockOptionalblockOptionalcachecachecachecachecachecacheInvalidateIfcacheInvalidateWhencacheInvalidateWhencancelOncastcheckpointcheckpointcheckpointconcatWithcontextCapturecontextWritecontextWritecreatedefaultIfEmptydeferdeferContextualdelaydelaydelayElementdelayElementdelaySubscriptiondelaySubscriptiondelaySubscriptiondelayUntildematerializedoAfterTerminatedoFinallydoFirstdoOnCanceldoOnDiscarddoOnEachdoOnErrordoOnErrordoOnErrordoOnNextdoOnRequestdoOnSignaldoOnSubscribedoOnSuccessdoOnTerminalSignaldoOnTerminateelapsedelapsedemptyemptyequalsBiPredicateerrorerrorexpandexpandexpandDeepexpandDeepfilterfilterWhenfirstfirstfirstWithSignalfirstWithSignalfirstWithValuefirstWithValueflatMapflatMapIterableflatMapManyflatMapManyfluxfromfromCallablefromCompletionStagefromCompletionStagefromDirectfromFuturefromFuturefromFuturefromFuturefromRunnablefromSupplierhandlehasElementhideignoreElementignoreElementsjustjustOrEmptyjustOrEmptyloglogloglogloglogmapmapNotNullmaterializemergeWithmetricsnameneverofTypeonAssemblyonErrorCompleteonErrorCompleteonErrorCompleteonErrorContinueonErrorContinueonErrorContinueonErrorMaponErrorMaponErrorMaponErrorResumeonErrorResumeonErrorResumeonErrorReturnonErrorReturnonErrorReturnonErrorStoponTerminateDetachorpublishpublishOnrepeatrepeatrepeatrepeatrepeatWhenrepeatWhenEmptyrepeatWhenEmptyretryretryretryWhensequenceEqualsequenceEqualsequenceEqualsharesinglesingleOptionalsubscribesubscribesubscribesubscribesubscribesubscribesubscribesubscribeOnsubscribeWithswitchIfEmptytagtaketaketakeUntilOthertaptaptapthenthenthenEmptythenManythenReturntimedtimedtimeouttimeouttimeouttimeouttimeouttimeouttimestamptimestamptoFuturetoStringtransformtransformDeferredtransformDeferredContextualusingusingusingWhenusingWhenwhenwhenwhenDelayErrorwhenDelayErrorwrapzipzipzipzipzipzipzipzipzipzipzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipWhenzipWhenzipWithzipWith

Field Detail

arrayback to summary
pack-priv final Mono<? extends T>[] array
iterableback to summary
pack-priv final Iterable<? extends Mono<? extends T>> iterable

Constructor Detail

MonoFirstWithValueback to summary
private MonoFirstWithValue(Mono<? extends T>[] array)
MonoFirstWithValueback to summary
pack-priv MonoFirstWithValue(Mono<? extends T> first, Mono<? extends T>... others)
Annotations
@SafeVarargs
MonoFirstWithValueback to summary
pack-priv MonoFirstWithValue(Iterable<? extends Mono<? extends T>> iterable)

Method Detail

firstValuedAdditionalSourcesback to summary
pack-priv final MonoFirstWithValue<T> firstValuedAdditionalSources(Mono<? extends T>... others)

Returns a new instance which has the additional sources to be flattened together with the current array of sources.

This operation doesn't change the current MonoFirstWithValue instance.

Parameters
others:Mono<? extends T>[]

the new sources to merge with the current sources

Returns:MonoFirstWithValue<T>

the new MonoFirstWithValue instance or null if new sources cannot be added (backed by an Iterable)

Annotations
@Nullable
@SafeVarargs
scanUnsafeback to summary
public Object scanUnsafe(Scannable.Attr<T> key)

Overrides default reactor.core.publisher.SourceProducer.scanUnsafe.

Doc from reactor.core.Scannable.scanUnsafe.

This method is used internally by components to define their key-value mappings in a single place. Although it is ignoring the generic type of the Attr key, implementors should take care to return values of the correct type, and return null if no specific value is available.

For public consumption of attributes, prefer using scan(Attr), which will return a typed value and fall back to the key's default if the component didn't define any mapping.

Parameters
key:Scannable.Attr<T>

a Attr to resolve for the component.

Returns:Object

the value associated to the key for that specific component, or null if none.

Annotations
@Override
subscribeback to summary
public void subscribe(CoreSubscriber<? super T> actual)

Implements abstract reactor.core.publisher.Mono.subscribe.

Implements reactor.core.CorePublisher.subscribe.

Doc from reactor.core.publisher.Mono.subscribe.

An internal Publisher#subscribe(Subscriber) that will bypass Hooks#onLastOperator(Function) pointcut.

In addition to behave as expected by Publisher#subscribe(Subscriber) in a controlled manner, it supports direct subscribe-time Context passing.

Parameters
actual:CoreSubscriber<? super T>

the Subscriber interested into the published sequence

Annotations
@Override
@SuppressWarnings:unchecked