| Package | Description |
|---|---|
| eu.fthevenet.util.concurrent | |
| eu.fthevenet.util.function |
| Modifier and Type | Method and Description |
|---|---|
<R,E extends java.lang.Exception> |
ReadWriteLockHelper.LockHelper.lock(CheckedSupplier<R,E> operation)
Encapsulated the evaluation of the supplied
CheckedSupplier within the boundaries of the lock. |
<R,E extends java.lang.Exception> |
ReadWriteLockHelper.LockHelper.tryLock(CheckedSupplier<R,E> operation)
Tries to acquire the lock and if successful, evaluates the supplied
CheckedSupplier within the boundaries of the lock. |
| Modifier and Type | Method and Description |
|---|---|
static <T,E extends java.lang.Exception> |
CheckedLambdas.wrap(CheckedSupplier<T,E> supplier)
Wraps a
CheckedSupplier inside a Supplier and rethrow the
original exception. |
Copyright © 2018 Frederic Thevenet. All rights reserved.