Class MahaloTxnBasicLease
java.lang.Object
com.sun.jini.lease.AbstractLease
com.sun.jini.landlord.LandlordLease
com.sun.jini.mahalo.MahaloTxnBasicLease
- All Implemented Interfaces:
Serializable, Lease, ITransactionLease, ReferentUuid
TODO add Javadoc
- Since:
- 5.0
- Version:
- 1.0
- Author:
- Yechiel Fefer
- See Also:
-
Field Summary
Fields inherited from class AbstractLease
expiration, serialFormat -
Constructor Summary
ConstructorsConstructorDescriptionMahaloTxnBasicLease(Uuid cookie, Landlord landlord, Uuid landlordUuid, long expiration) -
Method Summary
Modifier and TypeMethodDescriptionvoidrenew(long duration) Renew the lease for a duration relative to now.voidMethods inherited from class LandlordLease
canBatch, cancel, createLeaseMap, doRenew, equals, getReferentUuid, hashCode, setLandlord, toStringMethods inherited from class AbstractLease
getExpiration, getSerialFormat, setSerialFormatMethods inherited from interface Lease
canBatch, cancel, createLeaseMap, getExpiration, getSerialFormat, setSerialFormat
-
Constructor Details
-
MahaloTxnBasicLease
-
-
Method Details
-
getCreatedTransaction
-
setCreatedTransaction
- Specified by:
setCreatedTransactionin interfaceITransactionLease
-
renew
public void renew(long duration) throws UnknownLeaseException, LeaseDeniedException, RemoteException Renew the lease for a duration relative to now.- Specified by:
renewin interfaceLease- Overrides:
renewin classAbstractLease- Parameters:
duration- the requested duration in milliseconds- Throws:
UnknownLeaseException- the lease being renewed is unknown to the lease grantorLeaseDeniedException- the lease grantor is unable or unwilling to renew the leaseRemoteException
-