Interface PublisherTransformer
- All Superinterfaces:
reactor.core.Disposable
- All Known Implementing Classes:
InflightLimiter
public interface PublisherTransformer
extends reactor.core.Disposable
Class to transform a
Publisher to another Publisher.-
Nested Class Summary
Nested classes/interfaces inherited from interface reactor.core.Disposable
reactor.core.Disposable.Composite, reactor.core.Disposable.Swap -
Method Summary
Modifier and TypeMethodDescriptionstatic PublisherTransformeridentity()Gets aPublisherTransformerthat returns the inputPublisherwithout modification.<T> org.reactivestreams.Publisher<T>transform(org.reactivestreams.Publisher<T> publisher) Transforms aPublisherto anotherPublisher.Methods inherited from interface reactor.core.Disposable
dispose, isDisposed
-
Method Details
-
identity
Gets aPublisherTransformerthat returns the inputPublisherwithout modification.- Returns:
- the input
Publishernot modified
-
transform
<T> org.reactivestreams.Publisher<T> transform(org.reactivestreams.Publisher<T> publisher) Transforms aPublisherto anotherPublisher.- Type Parameters:
T- the type of the publisher- Parameters:
publisher- the publisher to transform- Returns:
- the transformed publisher
-