org.codehaus.wadi.core.util
Class ExtendableLease
java.lang.Object
org.codehaus.wadi.core.util.SimpleLease
org.codehaus.wadi.core.util.ExtendableLease
- All Implemented Interfaces:
- java.util.concurrent.locks.Lock, Lease
public class ExtendableLease
- extends SimpleLease
- Version:
- $Revision$
- Author:
- Jules Gosnell
Nested classes/interfaces inherited from interface org.codehaus.wadi.core.util.Lease |
Lease.Handle |
Constructor Summary |
ExtendableLease(java.lang.String label,
java.util.concurrent.locks.Lock sync)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_DefaultExtender
protected static final ExtendableLease.Extender _DefaultExtender
_extender
protected ExtendableLease.Extender _extender
_leasePeriod
protected long _leasePeriod
ExtendableLease
public ExtendableLease(java.lang.String label,
java.util.concurrent.locks.Lock sync)
acquire
public Lease.Handle acquire(long leasePeriod,
ExtendableLease.Extender extender)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
attempt
public Lease.Handle attempt(long timeframe,
long leasePeriod,
ExtendableLease.Extender extender)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
setAlarm
protected Lease.Handle setAlarm(long leasePeriod)
- Overrides:
setAlarm
in class SimpleLease
Copyright © 2008. All Rights Reserved.