Package | Description |
---|---|
org.apache.camel.util.concurrent |
Concurrent utility classes
|
org.apache.camel.util.function |
Function utility classes
|
Modifier and Type | Method and Description |
---|---|
static <R,T extends Throwable> |
LockHelper.supplyWithReadLockT(StampedLock lock,
ThrowingSupplier<R,T> task) |
static <R,T extends Throwable> |
LockHelper.supplyWithWriteLockT(StampedLock lock,
ThrowingSupplier<R,T> task) |
Modifier and Type | Method and Description |
---|---|
static <T> Optional<T> |
Suppliers.firstMatching(Predicate<T> predicate,
ThrowingSupplier<T,Exception>... suppliers) |
static <T> Optional<T> |
Suppliers.firstNotNull(ThrowingSupplier<T,Exception>... suppliers) |
static <T> Supplier<T> |
Suppliers.memorize(ThrowingSupplier<T,? extends Exception> supplier,
Consumer<Exception> consumer) |
static <V,T extends Throwable> |
ThrowingHelper.wrapAsSupplier(ThrowingSupplier<V,T> supplier) |
Apache Camel