com.ettrema.http.fs
Class SimpleLockManager
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleLockManager
public SimpleLockManager()
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.