Package io.github.resilience4j.metrics
Interface VavrTimer
public interface VavrTimer
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <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.CheckedRunnabledecorateCheckedRunnable(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 usesupplier- 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 userunnable- 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 usefunction- the original function- Returns:
- a timed function
-