Top Description Fields Constructors Methods
reactor.core.publisher

pack-priv Class ContextTrackingFunctionWrapper<T, V>

extends Object
implements Function<Publisher<T>, CorePublisher<V>>
Class Inheritance
All Implemented Interfaces
java.util.function.Function
Imports
java.util.function.Function, org.reactivestreams.Publisher, .Subscriber, reactor.core.CorePublisher, .CoreSubscriber, reactor.core.publisher.FluxContextWrite.ContextWriteSubscriber, reactor.util.context.Context

This Function wrapper is used by operators like Flux#transform(Function) to implement the context loss detection.

Field Summary

Modifier and TypeField and Description
pack-priv static final String
pack-priv final String
pack-priv final Function<? super Publisher<T>, ? extends Publisher<V>>

Constructor Summary

AccessConstructor and Description
pack-priv
ContextTrackingFunctionWrapper(Function<? super Publisher<T>, ? extends Publisher<V>> transformer)

pack-priv
ContextTrackingFunctionWrapper(Function<? super Publisher<T>, ? extends Publisher<V>> transformer, String marker)

Method Summary

Modifier and TypeMethod and Description
public CorePublisher<V>
apply(Publisher<T>
the function argument
source
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONTEXT_MARKER_PREFIXback to summary
pack-priv static final String CONTEXT_MARKER_PREFIX
markerback to summary
pack-priv final String marker
transformerback to summary
pack-priv final Function<? super Publisher<T>, ? extends Publisher<V>> transformer

Constructor Detail

ContextTrackingFunctionWrapperback to summary
pack-priv ContextTrackingFunctionWrapper(Function<? super Publisher<T>, ? extends Publisher<V>> transformer)
ContextTrackingFunctionWrapperback to summary
pack-priv ContextTrackingFunctionWrapper(Function<? super Publisher<T>, ? extends Publisher<V>> transformer, String marker)

Method Detail

applyback to summary
public CorePublisher<V> apply(Publisher<T> source)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
source:Publisher<T>

the function argument

Returns:CorePublisher<V>

the function result

Annotations
@Override