- ACCOUNT_ID - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- ACK_FREEZE_REQUEST - Static variable in class com.reve.balancemanager.pubsub.MessageType
-
- ackFreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.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.
- addBillCredit(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- addBillDebit(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- addBMToACKSet(String) - Method in class com.reve.balancemanager.impl.MitigatorImpl
-
Add the name of the balance manager in the ack received list.
- addBMToACKSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
Add the name of the balance manager in the ack received list.
- addBMToFrozenSet(String) - Method in class com.reve.balancemanager.impl.MitigatorImpl
-
Add the name of the balance manager in the account freeze complete message received list.
- addBMToFrozenSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
Add the name of the balance manager in the account freeze complete message received list.
- addBMToUnfrozenSet(String) - Method in class com.reve.balancemanager.impl.MitigatorImpl
-
Add the name of the balance manager in the account unfrozen complete received list.
- addBMToUnfrozenSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
Add the name of the balance manager in the account unfrozen complete received list.
- addLeaseCredit(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- addLeaseDebit(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- addLocalBalance(double) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
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.lease.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.db.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.db.MysqlBalanceUpdater
-
Adds billed amount to total billed amount for corresponding account id
- allocatedLease - Variable in class com.reve.balancemanager.lease.LeaseResponse
-
How much amount lease has been given for this request.
- appendAttributes(byte[], int) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Append all the required attributes into the given byte array, so that it can be sent to the slave.
- appendAttributes(byte[], int) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Append all the required attributes into the given byte array, so that it can be sent to the slave.
- APPLICATION_NAME - Static variable in class com.reve.balancemanager.BalanceManager
-
- AVAILABLE_LOCAL_BALANCE - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- availableLocalBalance - Variable in class com.reve.balancemanager.lease.LeaseResponse
-
What was the available local balance after processing this request.
- savePendingCall(RedisCallDTO) - Method in class com.reve.balancemanager.lease.RedisCaller
-
Save this redisCall in pending call list to be called whenever possible.
- saveRedisCall(RedisCallDTO) - Method in class com.reve.balancemanager.BalanceManager
-
Whenever any redis call is required by
LeaseDTO asynchronously, this method must be called with an
instance of
RedisCallDTO.
- SCRIPT_EXECUTION - Static variable in class com.reve.balancemanager.lease.RedisCallDTO
-
It is public static final int variable.
- setAccountID(long) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setAmount(double) - Method in class com.reve.balancemanager.lease.RedisCallDTO
-
- setBalance(long, double, double) - Method in class com.reve.balancemanager.BalanceManager
-
Set the balance of the given account id to the given amount.
- setBalanceFreezer(BalanceFreezer) - Method in class com.reve.balancemanager.BalanceManager
-
Setter for the balance freezer needed to freeze accounts
- setChannel(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setEnableRedisCall(boolean) - Method in class com.reve.balancemanager.BalanceManager
-
- setFrozen(boolean) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Setter for freeze/unfreeze state of an account
- setFrozen(boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Setter for freeze/unfreeze state of an account
- setLeaseDTO(LeaseDTO) - Method in class com.reve.balancemanager.lease.RedisCallDTO
-
- setLocalBalanceSyncTime(long) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Set the timestamp in millis when last time this instance was synced with slaved.
- setLocalBalanceSyncTime(long) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Set the timestamp in millis when last time this instance was synced with slaved.
- setLuaFileName(String) - Method in class com.reve.balancemanager.lease.RedisCallDTO
-
- setMessageType(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setMysqlAmount(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- setMysqlBalance(long, double, double) - 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.
- setMysqlBalance(long, double, double) - Static method in class com.reve.balancemanager.db.BalanceTable
-
If the given accountId is not present in redis then it will be loaded from mysql database and be saved in redis
cluster.
- setPercentageToRelease(double) - Method in class com.reve.balancemanager.BalanceManager
-
- setRedisAmount(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- setThresholdToReleaseFullAmount(double) - Method in class com.reve.balancemanager.BalanceManager
-
Setter to configure threshold under which Balance Manager will release the full available amount
- setType(int) - Method in class com.reve.balancemanager.lease.RedisCallDTO
-
- shutDown() - Method in class com.reve.balancemanager.db.MysqlBalanceUpdater
-
Shutting down this thread.
- shutDown() - Method in class com.reve.balancemanager.lease.RedisCaller
-
Shut down this thread.
- shutDown() - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Shutdown this thread
- ShutdownCaller - Class in com.reve.balancemanager.lease
-
- ShutdownCaller(LeaseDTO, boolean) - Constructor for class com.reve.balancemanager.lease.ShutdownCaller
-
- startMysqlBalanceUpdate(boolean, boolean) - Method in class com.reve.balancemanager.BalanceManager
-
If anyone wants
BalanceManager to update mysql balance as well, then this method must be called with true
By default
BalanceManager will not update mysql balance.
- SYNC_TIME - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- syncAllAccounts(Collection<Long>) - Method in class com.reve.balancemanager.BalanceManager
-
Method to sync balance of the accounts present in failed SBC.
- syncBalance() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
- syncBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Check and assign values in #localBalanceSyncTime.