nl.hippo.portal.locking
Class RequestLockImpl

java.lang.Object
  extended by nl.hippo.portal.locking.RequestLockImpl
All Implemented Interfaces:
nl.hippo.portal.locking.RequestLock

public class RequestLockImpl
extends java.lang.Object
implements nl.hippo.portal.locking.RequestLock

Version:
$Id:CMSRequestLockImpl.java 19178 2007-02-06 10:52:55Z adouma $

Constructor Summary
RequestLockImpl(org.apache.commons.transaction.locking.ReadWriteUpgradeLockManager manager, java.lang.Long id, long readLockTimeout, long writeLockTimeout)
           
 
Method Summary
 boolean readLock()
           
 void release()
           
 boolean upgradeLock()
           
 boolean writeLock()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestLockImpl

public RequestLockImpl(org.apache.commons.transaction.locking.ReadWriteUpgradeLockManager manager,
                       java.lang.Long id,
                       long readLockTimeout,
                       long writeLockTimeout)
Method Detail

readLock

public boolean readLock()
Specified by:
readLock in interface nl.hippo.portal.locking.RequestLock

upgradeLock

public boolean upgradeLock()
Specified by:
upgradeLock in interface nl.hippo.portal.locking.RequestLock

writeLock

public boolean writeLock()
Specified by:
writeLock in interface nl.hippo.portal.locking.RequestLock

release

public void release()
Specified by:
release in interface nl.hippo.portal.locking.RequestLock


Copyright © 2007-2008 . All Rights Reserved.