Class FluxSupplier<T>

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

@Deprecated public class FluxSupplier<T> extends Object implements Supplier<reactor.core.publisher.Flux<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 Flux instance. If a Duration is provided, the Flux will produce output periodically, invoking the target Supplier's get method at each interval. If no Duration is provided, the target will be invoked only once.
Author:
Mark Fisher
  • Constructor Details

    • FluxSupplier

      public FluxSupplier(Supplier<T> supplier)
      Deprecated.
    • FluxSupplier

      public FluxSupplier(Supplier<T> supplier, Duration period)
      Deprecated.
  • Method Details

    • getTarget

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

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