com.ettrema.http.fs
Class SimpleLockManager

java.lang.Object
  extended by com.ettrema.http.fs.SimpleLockManager
All Implemented Interfaces:
LockManager

public class SimpleLockManager
extends java.lang.Object
implements LockManager

Keys on getUniqueID of the locked resource.


Constructor Summary
SimpleLockManager()
           
 
Method Summary
 LockToken getCurrentToken(LockableResource r)
           
 LockResult lock(LockTimeout timeout, LockInfo lockInfo, LockableResource r)
           
 LockResult refresh(java.lang.String tokenId, LockableResource resource)
           
 void unlock(java.lang.String tokenId, LockableResource r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLockManager

public SimpleLockManager()
Method Detail

lock

public LockResult lock(LockTimeout timeout,
                       LockInfo lockInfo,
                       LockableResource r)
Specified by:
lock in interface LockManager

refresh

public LockResult refresh(java.lang.String tokenId,
                          LockableResource resource)
Specified by:
refresh in interface LockManager

unlock

public void unlock(java.lang.String tokenId,
                   LockableResource r)
            throws NotAuthorizedException
Specified by:
unlock in interface LockManager
Throws:
NotAuthorizedException

getCurrentToken

public LockToken getCurrentToken(LockableResource r)
Specified by:
getCurrentToken in interface LockManager


Copyright © 2011. All Rights Reserved.