GigaSpaces XAP 9.7.2 API

com.sun.jini.mahalo
Class MahaloTxnBasicLease

java.lang.Object
  extended by com.sun.jini.lease.AbstractLease
      extended by com.sun.jini.landlord.LandlordLease
          extended by 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

Field Summary
 
Fields inherited from class com.sun.jini.lease.AbstractLease
expiration, serialFormat
 
Fields inherited from interface net.jini.core.lease.Lease
ABSOLUTE, ANY, DURATION, FOREVER
 
Constructor Summary
MahaloTxnBasicLease(Uuid cookie, Landlord landlord, Uuid landlordUuid, long expiration)
           
 
Method Summary
 Transaction getCreatedTransaction()
           
 void renew(long duration)
          Renew the lease for a duration relative to now.
 void setCreatedTransaction(Transaction tx)
           
 
Methods inherited from class com.sun.jini.landlord.LandlordLease
canBatch, cancel, createLeaseMap, doRenew, equals, getReferentUuid, hashCode, setLandlord, toString
 
Methods inherited from class com.sun.jini.lease.AbstractLease
getExpiration, getSerialFormat, setSerialFormat
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.jini.core.lease.Lease
canBatch, cancel, createLeaseMap, getExpiration, getSerialFormat, setSerialFormat
 

Constructor Detail

MahaloTxnBasicLease

public MahaloTxnBasicLease(Uuid cookie,
                           Landlord landlord,
                           Uuid landlordUuid,
                           long expiration)
Method Detail

getCreatedTransaction

public Transaction getCreatedTransaction()

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

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.