Package | Description |
---|---|
org.apache.camel.util |
Utility classes used by the core of Camel.
|
org.apache.camel.util.backoff |
Utility classes for BackOff.
|
org.apache.camel.util.function |
Function utility classes
|
Modifier and Type | Method and Description |
---|---|
static <I,R,T extends Throwable> |
ObjectHelper.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> |
ObjectHelper.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.
|
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.wrapAsFunction(ThrowingFunction<I,R,T> function) |
Apache Camel