
reactor.util.scala.retry.SRetry.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reactor-scala-extensions_2.11 Show documentation
Show all versions of reactor-scala-extensions_2.11 Show documentation
A scala extensions for Project Reactor Flux and Mono so that the code can be fluently used in Scala
The newest version!
package reactor.util.scala.retry
import org.reactivestreams.Publisher
import reactor.core.scala.publisher.SFlux
import reactor.util.retry.Retry
import reactor.util.retry.Retry.RetrySignal
object SRetry {
/**
* A wrapper around [[Function1]] to provide [[Retry]] by using lambda expressions.
*
* @param function the { @link Function} representing the desired { @link Retry} strategy as a lambda
* @return the { @link Retry} strategy adapted from the { @link Function}
*/
final def from(function: SFlux[RetrySignal] => Publisher[_]): Retry = Retry.from(function)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy