com.sun.jini.mahalo
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
 
public class MahaloTxnBasicLease
- extends LandlordLease
- implements ITransactionLease
  
TODO    add Javadoc
- Since:
 
  - 5.0
 
- Version:
 
  - 1.0
 
- Author:
 
  - Yechiel Fefer
 
- See Also:
 - Serialized Form
 
 
 
 
 
 
 
 
 
 
MahaloTxnBasicLease
public MahaloTxnBasicLease(Uuid cookie,
                           Landlord landlord,
                           Uuid landlordUuid,
                           long expiration)
getCreatedTransaction
public Transaction getCreatedTransaction()
- Specified by:
 getCreatedTransaction in interface ITransactionLease
 
 
setCreatedTransaction
public void setCreatedTransaction(Transaction tx)
- Specified by:
 setCreatedTransaction in interface ITransactionLease
 
 
renew
public void renew(long duration)
           throws UnknownLeaseException,
                  LeaseDeniedException,
                  RemoteException
- Renew the lease for a duration relative to now.
- Specified by:
 renew in interface Lease- Overrides:
 renew in class AbstractLease
 
- Parameters:
 duration - the requested duration in milliseconds
- Throws:
 UnknownLeaseException - the lease being renewed is unknown
         to the lease grantor
LeaseDeniedException - the lease grantor is unable or
         unwilling to renew the lease
RemoteException
 
 
Copyright © GigaSpaces.