Uses of Interface
org.apache.camel.util.function.ThrowingFunction
-
Packages that use ThrowingFunction Package Description org.apache.camel.util.backoff Utility classes for BackOff.org.apache.camel.util.function Function utility classes -
-
Uses of ThrowingFunction in org.apache.camel.util.backoff
Methods in org.apache.camel.util.backoff with parameters of type ThrowingFunction Modifier and Type Method Description BackOffTimer.Task
BackOffTimer. 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 ThrowingFunction Modifier and Type Method Description static <I,R,T extends Throwable>
Optional<R>ThrowingHelper. 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.static <I,R,T extends Throwable>
Function<I,R>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.
-