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, toString
getExpiration, getSerialFormat, setSerialFormat
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBatch, cancel, createLeaseMap, getExpiration, getSerialFormat, setSerialFormat
public Transaction getCreatedTransaction()
public void setCreatedTransaction(Transaction tx)
setCreatedTransaction
in interface ITransactionLease
public void renew(long duration) throws UnknownLeaseException, LeaseDeniedException, RemoteException
renew
in interface Lease
renew
in class AbstractLease
duration
- 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 leaseRemoteException
Copyright © GigaSpaces.