com.deftlabs.lock.mongo
Class DistributedLockOptions
java.lang.Object
com.deftlabs.lock.mongo.DistributedLockOptions
public class DistributedLockOptions
- extends Object
The options/configuration on a per lock basis. If this is not passed when creating the lock,
the library defaults are used.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistributedLockOptions
public DistributedLockOptions()
setInactiveLockTimeout
public void setInactiveLockTimeout(int pV)
- Set the inactive lock timeout (time in milliseconds). The default is one minute.
This means that if your lock process dies or is killed without unlocking first,
the lock will be reset in one minute (120,000 ms).
getInactiveLockTimeout
public int getInactiveLockTimeout()
- Returns the inactive lock timeout.