- ACK_FREEZE_REQUEST - Static variable in class com.reve.balancemanager.BalanceManager
-
- ACK_FREEZE_REQUEST - Static variable in class com.reve.balancemanager.BalanceManager
-
- ackFreezeRequest(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
-
For some reason like balance mismatch between redis and mysql in some point, we may need to freeze the account
and match the balance in redis and mysql.
- ackFreezeRequest(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
-
For some reason like balance mismatch between redis and mysql in some point, we may need to freeze the account
and match the balance in redis and mysql.
- addLocalBalance(double) - Method in class com.reve.balancemanager.LeaseDTO
-
Extra amount left at the end of the call is added to the lease (make sure to provide +ve
value).
- addLocalBalance(double) - Method in class com.reve.balancemanager.LeaseDTO
-
Extra amount left at the end of the call is added to the lease (make sure to provide +ve
value).
- addOrgBilledAmount(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
Adds billed amount to total bill for corresponding account id
- addOrgBilledAmount(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
Adds billed amount to total bill for corresponding account id
- addOrgBilledAmount(long, double) - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Adds billed amount to total bill for corresponding account id
- addOrgBilledAmount(long, double) - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Adds billed amount to total bill for corresponding account id
- addTerBilledAmount(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
Adds billed amount to total billed amount for corresponding account id
- addTerBilledAmount(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
Adds billed amount to total billed amount for corresponding account id
- addTerBilledAmount(long, double) - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Adds billed amount to total billed amount for corresponding account id
- addTerBilledAmount(long, double) - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Adds billed amount to total billed amount for corresponding account id
- adjustLeaseChunkAmount(long) - Method in class com.reve.balancemanager.LeaseDTO
-
- adjustLeaseChunkAmount(long) - Method in class com.reve.balancemanager.LeaseDTO
-
- allocatedLease - Variable in class com.reve.balancemanager.LeaseResponse
-
How much amount lease has been given for this request.
- allocatedLease - Variable in class com.reve.balancemanager.LeaseResponse
-
How much amount lease has been given for this request.
- availableLocalBalance - Variable in class com.reve.balancemanager.LeaseResponse
-
What was the available local balance after processing this request.
- availableLocalBalance - Variable in class com.reve.balancemanager.LeaseResponse
-
What was the available local balance after processing this request.
- LEASE_CHUNK_STEP - Static variable in class com.reve.balancemanager.BalanceManager
-
Value to increase or decrease when adjusting lease chunk with demand
- LEASE_CHUNK_STEP - Static variable in class com.reve.balancemanager.BalanceManager
-
Value to increase or decrease when adjusting lease chunk with demand
- LEASE_EMPTY_STATUS - Static variable in class com.reve.balancemanager.BalanceManager
-
- LEASE_EMPTY_STATUS - Static variable in class com.reve.balancemanager.BalanceManager
-
- LeaseDTO - Class in com.reve.balancemanager
-
This class is responsible for caching balance, taking advanced loan from mysql, giving lease when needed,
syncing the balance information between mysql and redis cluster
- LeaseDTO - Class in com.reve.balancemanager
-
This class is responsible for caching balance, taking advanced loan from mysql, giving lease when needed,
syncing the balance information between mysql and redis cluster
- LeaseDTO(long, BalanceManager) - Constructor for class com.reve.balancemanager.LeaseDTO
-
Create a
LeaseDTO instance for the given account id
- LeaseDTO(long, double, BalanceManager) - Constructor for class com.reve.balancemanager.LeaseDTO
-
This constructor is useful when take-over is happening.
- LeaseDTO(long, BalanceManager) - Constructor for class com.reve.balancemanager.LeaseDTO
-
Create a
LeaseDTO instance for the given account id
- LeaseDTO(long, double, BalanceManager) - Constructor for class com.reve.balancemanager.LeaseDTO
-
This constructor is useful when take-over is happening.
- LeaseResponse - Class in com.reve.balancemanager
-
This class is used for returning multiple value for a lease request.
- LeaseResponse - Class in com.reve.balancemanager
-
This class is used for returning multiple value for a lease request.
- LeaseResponse() - Constructor for class com.reve.balancemanager.LeaseResponse
-
Default constructor
- LeaseResponse(double, double) - Constructor for class com.reve.balancemanager.LeaseResponse
-
Constructor with two parameter
- LeaseResponse() - Constructor for class com.reve.balancemanager.LeaseResponse
-
Default constructor
- LeaseResponse(double, double) - Constructor for class com.reve.balancemanager.LeaseResponse
-
Constructor with two parameter
- loadLuaScript(String) - Static method in class com.reve.balancemanager.util.Functions
-
This is to load the lua script in our java program.
- loadLuaScript(String) - Static method in class com.reve.balancemanager.util.Functions
-
This is to load the lua script in our java program.
- processAccFreezeRequest(long) - Method in class com.reve.balancemanager.BalanceManager
-
When a freeze request is received from mitigator this method will be called.
- processAccFreezeRequest(long) - Method in class com.reve.balancemanager.BalanceManager
-
When a freeze request is received from mitigator this method will be called.
- processAccUnfreezeRequest(long) - Method in class com.reve.balancemanager.BalanceManager
-
When an unfreeze request is received from mitigator this method will be called.
- processAccUnfreezeRequest(long) - Method in class com.reve.balancemanager.BalanceManager
-
When an unfreeze request is received from mitigator this method will be called.
- publishCompletedFreeze(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
-
For some reason like balance mismatch between redis and mysql in some point, we may need to freeze the account
and match the balance in redis and mysql.
- publishCompletedFreeze(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
-
For some reason like balance mismatch between redis and mysql in some point, we may need to freeze the account
and match the balance in redis and mysql.
- publishCompletedUnfreeze(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
-
When balance matching is done by mitigation process, it will send an unfreeze request.
- publishCompletedUnfreeze(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
-
When balance matching is done by mitigation process, it will send an unfreeze request.
- publishEmptyLeaseStatus(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
-
Whenever Balance manager detects zero balance in redis cache, it transmits a warning to all Balance manager.
- publishEmptyLeaseStatus(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
-
Whenever Balance manager detects zero balance in redis cache, it transmits a warning to all Balance manager.
- PubSubListener - Class in com.reve.balancemanager.cluster
-
Listener Thread to subscribe to the channels needed for communication in Redis cluster
- PubSubListener - Class in com.reve.balancemanager.cluster
-
Listener Thread to subscribe to the channels needed for communication in Redis cluster
- PubSubListener(String, JedisCluster, PubSubSubscriber, String[]) - Constructor for class com.reve.balancemanager.cluster.PubSubListener
-
- PubSubListener(String, JedisCluster, PubSubSubscriber, String[]) - Constructor for class com.reve.balancemanager.cluster.PubSubListener
-
- PubSubPublisher - Class in com.reve.balancemanager.cluster
-
Publisher class to publish messages in Redis cluster pubsub
- PubSubPublisher - Class in com.reve.balancemanager.cluster
-
Publisher class to publish messages in Redis cluster pubsub
- PubSubPublisher(String, JedisCluster) - Constructor for class com.reve.balancemanager.cluster.PubSubPublisher
-
- PubSubPublisher(String, JedisCluster) - Constructor for class com.reve.balancemanager.cluster.PubSubPublisher
-
- PubSubSubscriber - Class in com.reve.balancemanager.cluster
-
Subscriber class to subscribe and listen to messages in Redis cluster pubsub
- PubSubSubscriber - Class in com.reve.balancemanager.cluster
-
Subscriber class to subscribe and listen to messages in Redis cluster pubsub
- PubSubSubscriber(BalanceManager) - Constructor for class com.reve.balancemanager.cluster.PubSubSubscriber
-
- PubSubSubscriber(BalanceManager) - Constructor for class com.reve.balancemanager.cluster.PubSubSubscriber
-
- readFromDb(long) - Method in class com.reve.balancemanager.BalanceManager
-
If the given accountId is not present in redis then it will be loaded from mysql database and be saved in redis cluster.
- readFromDb(long) - Method in class com.reve.balancemanager.BalanceManager
-
If the given accountId is not present in redis then it will be loaded from mysql database and be saved in redis cluster.
- readResourceFile(String) - Static method in class com.reve.balancemanager.util.Functions
-
Read a text resource file.
- readResourceFile(String) - Static method in class com.reve.balancemanager.util.Functions
-
Read a text resource file.
- returnAvailableBalancePercentage(double) - Method in class com.reve.balancemanager.LeaseDTO
-
A percentage of available balance for this account will be returned to redis cluster when this method is called.
- returnAvailableBalancePercentage(double) - Method in class com.reve.balancemanager.LeaseDTO
-
A percentage of available balance for this account will be returned to redis cluster when this method is called.
- returnLease(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
Extra amount left at the end of the call is added to the lease (make sure to provide +ve
value).
- returnLease(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
Extra amount left at the end of the call is added to the lease (make sure to provide +ve
value).
- returnLeaseOnRequest(long) - Method in class com.reve.balancemanager.BalanceManager
-
In case the balance of an account gets exhausted, balance manager will broadcast an empty status to all BMs.
- returnLeaseOnRequest(long) - Method in class com.reve.balancemanager.BalanceManager
-
In case the balance of an account gets exhausted, balance manager will broadcast an empty status to all BMs.
- run() - Method in class com.reve.balancemanager.cluster.PubSubListener
-
- run() - Method in class com.reve.balancemanager.cluster.PubSubListener
-
- run() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Continuously updates mysql balance without any sleep if some data are available to be updated in mysql,
and they are successfully updated then it will not sleep and try again.
- run() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Continuously updates mysql balance without any sleep if some data are available to be updated in mysql,
and they are successfully updated then it will not sleep and try again.