Class MonoOperator<I,O>

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

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

    • source

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

    • MonoOperator

      protected MonoOperator(Mono<? extends I> source)
      Build a MonoOperator 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.