Class BalanceStatus

java.lang.Object
com.reve.balancemanager.matching.BalanceStatus

public class BalanceStatus extends Object
This class is primarily created to keep the balance information for a given client. This is helper class for auto-detection of possible balance mismatch.
  • Constructor Details

    • BalanceStatus

      public BalanceStatus(long accountID)
  • Method Details

    • reset

      public void reset()
    • getAccountID

      public long getAccountID()
    • addLeaseDebit

      public void addLeaseDebit(double amount)
    • addLeaseCredit

      public void addLeaseCredit(double amount)
    • addBillDebit

      public void addBillDebit(double amount)
    • addBillCredit

      public void addBillCredit(double amount)
    • getRedisAmount

      public double getRedisAmount()
    • setRedisAmount

      public void setRedisAmount(double totalRedisAmount)
    • getMysqlAmount

      public double getMysqlAmount()
    • setMysqlAmount

      public void setMysqlAmount(double availableInMysql)
    • getDebitAmountLease

      public double getDebitAmountLease()
    • getCreditAmountLease

      public double getCreditAmountLease()
    • getDebitAmountBill

      public double getDebitAmountBill()
    • getCreditAmountBill

      public double getCreditAmountBill()
    • toString

      public String toString()
      Overrides:
      toString in class Object