Package com.reve.balancemanager.lease
Class LeaseResponse
java.lang.Object
com.reve.balancemanager.lease.LeaseResponse
- All Implemented Interfaces:
Serializable
This class is used for returning multiple value for a lease request.
availableLocalBalance needed when it is running in master slave mode, and slave should be updated instantly.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleHow much amount lease has been given for this request.doubleWhat was the available local balance after processing this request. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorLeaseResponse(double allocatedLease, double availableLocalBalance) Constructor with two parameter -
Method Summary
-
Field Details
-
allocatedLease
public double allocatedLeaseHow much amount lease has been given for this request. -
availableLocalBalance
public double availableLocalBalanceWhat was the available local balance after processing this request.
-
-
Constructor Details
-
LeaseResponse
public LeaseResponse()Default constructor -
LeaseResponse
public LeaseResponse(double allocatedLease, double availableLocalBalance) Constructor with two parameter- Parameters:
allocatedLease- given lease amount for this request.availableLocalBalance- available local balance after this request has been processed.
-
-
Method Details