Class RedisCallDTO

java.lang.Object
com.reve.balancemanager.lease.RedisCallDTO

public class RedisCallDTO extends Object
Whenever any redis call is required by RedisCaller thread, An instance of this RedisCallDTO dto class must be pushed into the queue of RedisCaller thread. This class defines for which account id and how much amount should be increased in the redis.
  • Constructor Details

    • RedisCallDTO

      public RedisCallDTO(LeaseDTO leaseDTO, double amount)
      Constructor
      Parameters:
      leaseDTO - instance of LeaseDTO for which amount should be increased in redis.
      amount - Amount to be increased in redis. If we want to decrease in redis, then this value must be negative.
    • RedisCallDTO

      public RedisCallDTO(LeaseDTO leaseDTO, RedisCallType type)
      constructor
      Parameters:
      leaseDTO - instance of LeaseDTO for which amount should be increased in redis. and insert BmId field.
      type - indicate which type of RedisCall is needed.
  • Method Details

    • getAmount

      public double getAmount()
    • setAmount

      public void setAmount(double amount)
    • getLeaseDTO

      public LeaseDTO getLeaseDTO()
    • setLeaseDTO

      public void setLeaseDTO(LeaseDTO leaseDTO)
    • getType

      public RedisCallType getType()
    • setType

      public void setType(RedisCallType type)
    • toString

      public String toString()
      Overrides:
      toString in class Object