com.deftlabs.lock.mongo
Class DistributedLockOptions

java.lang.Object
  extended by 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.


Constructor Summary
DistributedLockOptions()
           
 
Method Summary
 int getInactiveLockTimeout()
          Returns the inactive lock timeout.
 void setInactiveLockTimeout(int pV)
          Set the inactive lock timeout (time in milliseconds).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedLockOptions

public DistributedLockOptions()
Method Detail

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.