| Package | Description |
|---|---|
| org.apache.camel.util.backoff |
Utility classes for BackOff.
|
| org.apache.camel.util.function |
Function utility classes
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
static <I,R,T extends Throwable> |
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> |
ThrowingHelper.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> |
ThrowingHelper.wrapAsFunction(ThrowingFunction<I,R,T> function)
Wrap a
ThrowingFunction to a standard Function by throwing a RuntimeException in case of
an exception is thrown by the delegated function. |
Apache Camel