Interface VavrTimer


public interface VavrTimer
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <T, R> io.vavr.CheckedFunction1<T,R>
    decorateCheckedFunction(io.github.resilience4j.metrics.Timer timer, io.vavr.CheckedFunction1<T,R> function)
    Creates a timed function.
    static io.vavr.CheckedRunnable
    decorateCheckedRunnable(io.github.resilience4j.metrics.Timer timer, io.vavr.CheckedRunnable runnable)
    Creates a timed runnable.
    static <T> io.vavr.CheckedFunction0<T>
    decorateCheckedSupplier(io.github.resilience4j.metrics.Timer timer, io.vavr.CheckedFunction0<T> supplier)
    Creates a timed checked supplier.
  • Method Details

    • decorateCheckedSupplier

      static <T> io.vavr.CheckedFunction0<T> decorateCheckedSupplier(io.github.resilience4j.metrics.Timer timer, io.vavr.CheckedFunction0<T> supplier)
      Creates a timed checked supplier.
      Parameters:
      timer - the timer to use
      supplier - the original supplier
      Returns:
      a timed supplier
    • decorateCheckedRunnable

      static io.vavr.CheckedRunnable decorateCheckedRunnable(io.github.resilience4j.metrics.Timer timer, io.vavr.CheckedRunnable runnable)
      Creates a timed runnable.
      Parameters:
      timer - the timer to use
      runnable - the original runnable
      Returns:
      a timed runnable
    • decorateCheckedFunction

      static <T, R> io.vavr.CheckedFunction1<T,R> decorateCheckedFunction(io.github.resilience4j.metrics.Timer timer, io.vavr.CheckedFunction1<T,R> function)
      Creates a timed function.
      Parameters:
      timer - the timer to use
      function - the original function
      Returns:
      a timed function