Uses of Interface
org.apache.camel.util.function.ThrowingSupplier
-
Packages that use ThrowingSupplier Package Description org.apache.camel.util.concurrent Concurrent utility classesorg.apache.camel.util.function Function utility classes -
-
Uses of ThrowingSupplier in org.apache.camel.util.concurrent
Methods in org.apache.camel.util.concurrent with parameters of type ThrowingSupplier Modifier and Type Method Description static <R,T extends Throwable>
RLockHelper. supplyWithReadLockT(StampedLock lock, ThrowingSupplier<R,T> task)
static <R,T extends Throwable>
RLockHelper. supplyWithWriteLockT(StampedLock lock, ThrowingSupplier<R,T> task)
-
Uses of ThrowingSupplier in org.apache.camel.util.function
Methods in org.apache.camel.util.function with parameters of type ThrowingSupplier Modifier and Type Method Description static <T> Optional<T>
Suppliers. firstMatching(Predicate<T> predicate, ThrowingSupplier<T,Exception>... suppliers)
Returns the first value provide by the given suppliers that matches the given predicate.static <T> Optional<T>
Suppliers. firstNotNull(ThrowingSupplier<T,Exception>... suppliers)
Returns the first non null value provide by the given suppliers.static <T> Supplier<T>
Suppliers. memorize(ThrowingSupplier<T,? extends Exception> supplier, Consumer<Exception> consumer)
Returns a supplier which caches the result of the first call toSupplier.get()
and returns that value on subsequent calls.static <V,T extends Throwable>
Supplier<V>ThrowingHelper. wrapAsSupplier(ThrowingSupplier<V,T> supplier)
Wrap aThrowingSupplier
to a standardSuppliers
by throwing aRuntimeException
in case of an exception is thrown by the delegated supplier.
-