- 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.