public class LockUtil
extends java.lang.Object
Constructor and Description |
---|
LockUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
lockRead(java.util.concurrent.locks.Lock readLock,
long timeout) |
static void |
lockWrite(java.util.concurrent.locks.ReentrantReadWriteLock lock) |
static void |
lockWrite(java.util.concurrent.locks.ReentrantReadWriteLock lock,
long timeout) |
public static void lockRead(java.util.concurrent.locks.Lock readLock, long timeout)
public static void lockWrite(java.util.concurrent.locks.ReentrantReadWriteLock lock)
public static void lockWrite(java.util.concurrent.locks.ReentrantReadWriteLock lock, long timeout)