Class FluxOperator<I,O>

java.lang.Object
reactor.core.publisher.Flux<O>
reactor.core.publisher.FluxOperator<I,O>
Type Parameters:
I - delegate Publisher type
O - produced type
All Implemented Interfaces:
Publisher<O>, CorePublisher<O>, Scannable

public abstract class FluxOperator<I,O> extends Flux<O> implements Scannable
A decorating Flux Publisher that exposes Flux API over an arbitrary Publisher. Useful to create operators which return a Flux.
  • Field Details

    • source

      protected final Flux<? extends I> source
  • Constructor Details

    • FluxOperator

      protected FluxOperator(Flux<? extends I> source)
      Build a FluxOperator wrapper around the passed parent Publisher
      Parameters:
      source - the Publisher to decorate
  • Method Details

    • scanUnsafe

      public @Nullable Object scanUnsafe(Scannable.Attr key)
      Description copied from interface: Scannable
      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 Scannable.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 Scannable.scan(Attr), which will return a typed value and fall back to the key's default if the component didn't define any mapping.

      Specified by:
      scanUnsafe in interface Scannable
      Parameters:
      key - a Scannable.Attr to resolve for the component.
      Returns:
      the value associated to the key for that specific component, or null if none.