public class MahaloTxnBasicLease extends LandlordLease implements ITransactionLease
expiration, serialFormat| Constructor and Description |
|---|
MahaloTxnBasicLease(Uuid cookie,
Landlord landlord,
Uuid landlordUuid,
long expiration) |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
getCreatedTransaction() |
void |
renew(long duration)
Renew the lease for a duration relative to now.
|
void |
setCreatedTransaction(Transaction tx) |
canBatch, cancel, createLeaseMap, doRenew, equals, getReferentUuid, hashCode, setLandlord, toStringgetExpiration, getSerialFormat, setSerialFormatclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBatch, cancel, createLeaseMap, getExpiration, getSerialFormat, setSerialFormatpublic Transaction getCreatedTransaction()
public void setCreatedTransaction(Transaction tx)
setCreatedTransaction in interface ITransactionLeasepublic void renew(long duration)
throws UnknownLeaseException,
LeaseDeniedException,
RemoteException
renew in interface Leaserenew in class AbstractLeaseduration - the requested duration in millisecondsUnknownLeaseException - the lease being renewed is unknown to the lease grantorLeaseDeniedException - the lease grantor is unable or unwilling to renew the leaseRemoteExceptionCopyright © GigaSpaces.