ontopoly
Class LockManager
java.lang.Object
ontopoly.LockManager
- All Implemented Interfaces:
- java.io.Serializable
public class LockManager
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_LOCK_TIMESPAN_MINUTES
public static final long DEFAULT_LOCK_TIMESPAN_MINUTES
- See Also:
- Constant Field Values
DEFAULT_LOCK_REACQUIRE_TIMESPAN_MINUTES
public static final long DEFAULT_LOCK_REACQUIRE_TIMESPAN_MINUTES
- See Also:
- Constant Field Values
LockManager
public LockManager()
LockManager
public LockManager(long lockTimespan)
getLockTimeSpan
public long getLockTimeSpan()
lock
public LockManager.Lock lock(java.lang.String lockKey,
java.lang.String lockerId)
forcedUnlock
public LockManager.Lock forcedUnlock(java.lang.String lockKey)
unlock
public LockManager.Lock unlock(java.lang.String lockKey,
java.lang.String lockerId)
expireLocksForOwner
public void expireLocksForOwner(java.lang.String lockerId)
Copyright © 2000-2012 Ontopia.