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