Class MonoSupplier<T>

java.lang.Object
org.springframework.cloud.function.core.MonoSupplier<T>
Type Parameters:
T - output type of target supplier
All Implemented Interfaces:
Supplier<reactor.core.publisher.Mono<T>>, FluxWrapper<Supplier<T>>

@Deprecated public class MonoSupplier<T> extends Object implements Supplier<reactor.core.publisher.Mono<T>>, FluxWrapper<Supplier<T>>
Deprecated.
since 3.1 no longer used by the framework
Supplier implementation that wraps a target Supplier so that the target's simple output type will be wrapped in a Mono instance.
Since:
2.1
Author:
Mark Fisher
  • Constructor Details

    • MonoSupplier

      public MonoSupplier(Supplier<T> supplier)
      Deprecated.
  • Method Details

    • getTarget

      public Supplier<T> getTarget()
      Deprecated.
      Specified by:
      getTarget in interface FluxWrapper<T>
    • get

      public reactor.core.publisher.Mono<T> get()
      Deprecated.
      Specified by:
      get in interface Supplier<T>