Serialized Form

  • Package com.reve.balancemanager.impl

    • Class com.reve.balancemanager.impl.LeaseDTOImpl

      class LeaseDTOImpl extends LeaseDTO implements Serializable
      serialVersionUID:
      1L
      • Serialized Fields

        • accountId
          long accountId
          Account ID for which this LeaseDTO instance will maintain balance information
        • availableLocalBalance
          double availableLocalBalance
          Advanced amount is taken from redis cluster balance and saved to availableLocalBalance, Whenever lease is asked it will be provided too fast.
        • availableRedisBalance
          double availableRedisBalance
          Available amount in redis found by this application after last transaction.
        • balanceZeroTime
          long balanceZeroTime
          Last time when mysql and redis balance has become zero. This value is used to prevent frequent redis call, when balance has become zero.
        • fullBalanceReleaseTime
          long fullBalanceReleaseTime
          Time to keep track when the full balance was released from a Balance Manager for an account. Here balance denotes local balance for a Balance Manager/SBC.
        • isAddedBMId
          boolean isAddedBMId
          true, when BalanceManager Identifier is inserted into redis BalanceManager.BM_ID_FIELD field. false otherwise
        • isFrozen
          boolean isFrozen
          True when an account is frozen. An account can be frozen when any Balance Manager or SBC fails/crashes. If true the account will not be able to get lease from the system unless unfrozen.
        • lastBalanceLeaseFromRedisTime
          long lastBalanceLeaseFromRedisTime
          Denotes last time lease was taken for this account from Redis
        • leaseChunkAmount
          double leaseChunkAmount
          default amount Balance Manager tries to store locally from Redis for an account when @getLease is called the first time
        • leaseKey
          String leaseKey
          Key in the redis for this LeaseDTO. All the operation in the redis cluster will be done on this key.
        • localBalanceChangeTime
          long localBalanceChangeTime
          Timestamp in millis when for the last time LeaseDTOImpl.availableLocalBalance value was changed. This is required to detect if this LeaseDTO needs to be synced.
        • localBalanceSyncTime
          long localBalanceSyncTime
          Timestamp in millis when for the last time LeaseDTOImpl.availableLocalBalance value was synced with slave. This is required to detect if this LeaseDTO needs to be synced.
  • Package com.reve.balancemanager.lease

    • Class com.reve.balancemanager.lease.LeaseResponse

      class LeaseResponse extends Object implements Serializable
      serialVersionUID:
      1L
      • Serialized Fields

        • allocatedLease
          double allocatedLease
          How much amount lease has been given for this request.
        • availableLocalBalance
          double availableLocalBalance
          What was the available local balance after processing this request.