com.caucho.config.util
Class LockUtil

java.lang.Object
  extended by com.caucho.config.util.LockUtil

public class LockUtil
extends java.lang.Object

Utilities to manage locks.


Constructor Summary
LockUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockUtil

public LockUtil()
Method Detail

lockRead

public static void lockRead(java.util.concurrent.locks.Lock readLock,
                            long timeout)

lockWrite

public static void lockWrite(java.util.concurrent.locks.ReentrantReadWriteLock lock)

lockWrite

public static void lockWrite(java.util.concurrent.locks.ReentrantReadWriteLock lock,
                             long timeout)