org.codehaus.wadi.core.util
Class LoggingLock

java.lang.Object
  extended by org.codehaus.wadi.core.util.LoggingLock
All Implemented Interfaces:
java.util.concurrent.locks.Lock

public class LoggingLock
extends java.lang.Object
implements java.util.concurrent.locks.Lock

Version:
$Rev:$ $Date:$

Nested Class Summary
static interface LoggingLock.NameAccessor
           
 
Constructor Summary
LoggingLock(java.lang.String name, java.util.concurrent.locks.Lock delegate)
           
 
Method Summary
 void lock()
           
 void lockInterruptibly()
           
 java.util.concurrent.locks.Condition newCondition()
           
 boolean tryLock()
           
 boolean tryLock(long time, java.util.concurrent.TimeUnit unit)
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingLock

public LoggingLock(java.lang.String name,
                   java.util.concurrent.locks.Lock delegate)
Method Detail

lock

public void lock()
Specified by:
lock in interface java.util.concurrent.locks.Lock

lockInterruptibly

public void lockInterruptibly()
                       throws java.lang.InterruptedException
Specified by:
lockInterruptibly in interface java.util.concurrent.locks.Lock
Throws:
java.lang.InterruptedException

newCondition

public java.util.concurrent.locks.Condition newCondition()
Specified by:
newCondition in interface java.util.concurrent.locks.Lock

tryLock

public boolean tryLock()
Specified by:
tryLock in interface java.util.concurrent.locks.Lock

tryLock

public boolean tryLock(long time,
                       java.util.concurrent.TimeUnit unit)
                throws java.lang.InterruptedException
Specified by:
tryLock in interface java.util.concurrent.locks.Lock
Throws:
java.lang.InterruptedException

unlock

public void unlock()
Specified by:
unlock in interface java.util.concurrent.locks.Lock


Copyright © 2011. All Rights Reserved.