public class Locks
extends java.lang.Object
Constructor and Description |
---|
Locks() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
withLock(java.util.concurrent.locks.Lock lock,
java.util.concurrent.Callable<T> body) |
static void |
withLock(java.util.concurrent.locks.Lock lock,
java.lang.Runnable body) |