Package com.reve.balancemanager.lease
Class RedisCallDTO
java.lang.Object
com.reve.balancemanager.lease.RedisCallDTO
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 Summary
ConstructorsConstructorDescriptionRedisCallDTO(LeaseDTO leaseDTO, double amount) ConstructorRedisCallDTO(LeaseDTO leaseDTO, RedisCallType type) constructor -
Method Summary
Modifier and TypeMethodDescriptiondoublegetType()voidsetAmount(double amount) voidsetLeaseDTO(LeaseDTO leaseDTO) voidsetType(RedisCallType type) toString()
-
Constructor Details
-
RedisCallDTO
Constructor- Parameters:
leaseDTO- instance ofLeaseDTOfor whichamountshould 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
constructor- Parameters:
leaseDTO- instance ofLeaseDTOfor whichamountshould be increased in redis. and insert BmId field.type- indicate which type of RedisCall is needed.
-
-
Method Details