Uses of Interface
org.apache.camel.util.function.ThrowingFunction
Packages that use ThrowingFunction
Package
Description
Utility classes for BackOff.
Function utility classes
-
Uses of ThrowingFunction in org.apache.camel.util.backoff
Methods in org.apache.camel.util.backoff with parameters of type ThrowingFunctionModifier and TypeMethodDescriptionBackOffTimer.schedule
(BackOff backOff, ThrowingFunction<BackOffTimer.Task, Boolean, Exception> function) Schedule the given function/task to be executed some time in the future according to the given backOff. -
Uses of ThrowingFunction in org.apache.camel.util.function
Methods in org.apache.camel.util.function with parameters of type ThrowingFunctionModifier and TypeMethodDescriptionThrowingHelper.applyIfNotEmpty
(I value, ThrowingFunction<I, R, T> function) Tests whether the value is not null, an empty string, an empty collection or a map and transform it using the given function.static <I,
R, T extends Throwable>
RThrowingHelper.applyIfNotEmpty
(I value, ThrowingFunction<I, R, T> consumer, Supplier<R> orElse) Tests whether the value is not null, an empty string, an empty collection or a map and transform it using the given function.ThrowingHelper.wrapAsFunction
(ThrowingFunction<I, R, T> function) Wrap aThrowingFunction
to a standardFunction
by throwing aRuntimeException
in case of an exception is thrown by the delegated function.