Uses of Interface
org.apache.camel.util.function.ThrowingSupplier
Packages that use ThrowingSupplier
Package
Description
Concurrent utility classes
Function utility classes
-
Uses of ThrowingSupplier in org.apache.camel.util.concurrent
Methods in org.apache.camel.util.concurrent with parameters of type ThrowingSupplierModifier and TypeMethodDescriptionstatic <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 ThrowingSupplierModifier and TypeMethodDescriptionstatic <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.ThrowingHelper.wrapAsSupplier(ThrowingSupplier<V, T> supplier) Wrap aThrowingSupplierto a standardSuppliersby throwing aRuntimeExceptionin case of an exception is thrown by the delegated supplier.