|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The input type that we lock on.Function that returns a ManagedLock
instead.
@Deprecated public interface LockManager<T>
LockManager allows callables, suppliers and runnables to be run under a lock that is
resolved against an input object.
| Nested Class Summary | |
|---|---|
static interface |
LockManager.ReadWrite<T>
Deprecated. Maintains two lock managers that internally use the same map of read/write locks |
| Method Summary | ||
|---|---|---|
|
withLock(T descriptor,
java.util.concurrent.Callable<R> callable)
Deprecated. Execute the supplied Callable under a lock determined by the
descriptor. |
|
void |
withLock(T descriptor,
java.lang.Runnable runnable)
Deprecated. Execute the supplied Runnable under a lock determined by the
descriptor. |
|
|
withLock(T descriptor,
Supplier<R> supplier)
Deprecated. Execute the supplied Supplier under a lock determined by the
descriptor. |
|
| Method Detail |
|---|
<R> R withLock(T descriptor,
Supplier<R> supplier)
Supplier under a lock determined by the
descriptor. Does not throw a checked exception.
R - the result typedescriptor - to look up the locksupplier - the operation to perform under lock
Supplier returns
<R> R withLock(T descriptor,
java.util.concurrent.Callable<R> callable)
throws java.lang.Exception
Callable under a lock determined by the
descriptor.
R - the result typedescriptor - to look up the lockcallable - the operation to perform under lock
Callable returns
java.lang.Exception - if the supplied Callable throws an exception
void withLock(T descriptor,
java.lang.Runnable runnable)
Runnable under a lock determined by the
descriptor.
descriptor - to look up the lockrunnable - the operation to perform under lock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||