- ACCOUNT_ID - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- ACCOUNT_ID - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- ACK_FREEZE_REQUEST - Static variable in class com.reve.balancemanager.pubsub.MessageType
-
- 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.
- 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
-
- addBillCredit(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- addBillDebit(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.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.
- 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.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.
- 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.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.
- 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
-
- addLeaseCredit(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- addLeaseDebit(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.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).
- 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.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
- 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.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
- 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.
- 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.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.
- 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
-
- APPLICATION_NAME - Static variable in class com.reve.balancemanager.BalanceManager
-
- AVAILABLE_LOCAL_BALANCE - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- 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.
- availableLocalBalance - Variable in class com.reve.balancemanager.lease.LeaseResponse
-
What was the available local balance after processing this request.
- getAccountId() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
- getAccountId() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
- getAccountId() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- getAccountId() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- getAccountID() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getAccountID() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getAccountID() - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- getAccountID() - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- getAccountIDList() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getAccountIDList() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getAllAccountID() - Method in class com.reve.balancemanager.BalanceManager
-
Get the set of all account id present in this balance manager.
- getAllAccountID() - Method in class com.reve.balancemanager.BalanceManager
-
Get the set of all account id present in this balance manager.
- getAmount() - Method in class com.reve.balancemanager.lease.RedisCallDTO
-
- getAmount() - Method in class com.reve.balancemanager.lease.RedisCallDTO
-
- getAvailableLocalBalance() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
- getAvailableLocalBalance() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
- getAvailableLocalBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- getAvailableLocalBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- getAvailableRedisBalance() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
- getAvailableRedisBalance() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
- getAvailableRedisBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- getAvailableRedisBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- getBalanceManagerID() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getBalanceManagerID() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getBalanceToSync(List<LeaseDTO>, boolean) - Method in class com.reve.balancemanager.BalanceManager
-
Get all the instances of
LeaseDTO those needed to be synced.
- getBalanceToSync(List<LeaseDTO>, boolean) - Method in class com.reve.balancemanager.BalanceManager
-
Get all the instances of
LeaseDTO those needed to be synced.
- getChannel() - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- getChannel() - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- getClassReference() - Static method in class com.reve.balancemanager.lease.LeaseDTO
-
- getClassReference() - Static method in class com.reve.balancemanager.lease.LeaseDTO
-
- getClassReference() - Static method in class com.reve.balancemanager.mitigation.Mitigator
-
- getClassReference() - Static method in class com.reve.balancemanager.mitigation.Mitigator
-
- getClusterObserver() - Method in class com.reve.balancemanager.BalanceManager
-
- getClusterObserver() - Method in class com.reve.balancemanager.BalanceManager
-
- getCreditAmountBill() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getCreditAmountBill() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getCreditAmountLease() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getCreditAmountLease() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getDebitAmountBill() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getDebitAmountBill() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getDebitAmountLease() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getDebitAmountLease() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getDeclaredFields() - Static method in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- getDeclaredFields() - Static method in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- getIdentifier() - Method in class com.reve.balancemanager.BalanceManager
-
- getIdentifier() - Method in class com.reve.balancemanager.BalanceManager
-
- getInstance() - Static method in class com.reve.balancemanager.lease.LeaseDTO
-
- getInstance() - Static method in class com.reve.balancemanager.lease.LeaseDTO
-
- getInstance() - Static method in class com.reve.balancemanager.mitigation.Configuration
-
- getInstance() - Static method in class com.reve.balancemanager.mitigation.Configuration
-
- getInstance() - Static method in class com.reve.balancemanager.mitigation.Mitigator
-
- getInstance() - Static method in class com.reve.balancemanager.mitigation.Mitigator
-
- getLease(long, double, LeaseResponse) - Method in class com.reve.balancemanager.BalanceManager
-
Try to get a lease from this account balance.
- getLease(long, double, LeaseResponse, boolean) - Method in class com.reve.balancemanager.BalanceManager
-
Try to get a lease from this account balance.
- getLease(long, double, LeaseResponse) - Method in class com.reve.balancemanager.BalanceManager
-
Try to get a lease from this account balance.
- getLease(long, double, LeaseResponse, boolean) - Method in class com.reve.balancemanager.BalanceManager
-
Try to get a lease from this account balance.
- getLease(double, LeaseResponse, boolean) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Try to get a lease from this account balance.
- getLease(double, LeaseResponse, boolean) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Try to get a lease from this account balance.
- getLease(double, LeaseResponse, boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Try to get a lease from this account balance.
- getLease(double, LeaseResponse, boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Try to get a lease from this account balance.
- getLeaseDTO(long) - Method in class com.reve.balancemanager.BalanceManager
-
Get the instance of
LeaseDTO mapped with the given account id.
- getLeaseDTO(long) - Method in class com.reve.balancemanager.BalanceManager
-
Get the instance of
LeaseDTO mapped with the given account id.
- getLeaseDTO() - Method in class com.reve.balancemanager.lease.RedisCallDTO
-
- getLeaseDTO() - Method in class com.reve.balancemanager.lease.RedisCallDTO
-
- getLocalBalanceSyncTime() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Get the timestamp in millis when last time this instance was synced with slaved.
- getLocalBalanceSyncTime() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Get the timestamp in millis when last time this instance was synced with slaved.
- getLocalBalanceSyncTime() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Get the timestamp in millis when last time this instance was synced with slaved.
- getLocalBalanceSyncTime() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Get the timestamp in millis when last time this instance was synced with slaved.
- getMessageType() - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- getMessageType() - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- getMysqlAmount() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getMysqlAmount() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getMysqlBalance(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.
- getMysqlBalance(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.
- getMysqlBalance(long) - 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.
- getMysqlBalance(long) - 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.
- getMysqlBalance(long) - Method in class com.reve.balancemanager.db.MysqlBalanceUpdater
-
- getMysqlBalance(long) - Method in class com.reve.balancemanager.db.MysqlBalanceUpdater
-
- getPercentageToRelease() - Method in class com.reve.balancemanager.BalanceManager
-
- getPercentageToRelease() - Method in class com.reve.balancemanager.BalanceManager
-
- getPublisher() - Method in class com.reve.balancemanager.BalanceManager
-
- getPublisher() - Method in class com.reve.balancemanager.BalanceManager
-
- getPubSubPublisher() - Method in class com.reve.balancemanager.BalanceManager
-
- getPubSubPublisher() - Method in class com.reve.balancemanager.BalanceManager
-
- getRedisAmount() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getRedisAmount() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- getRedisAuthPassword() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisAuthPassword() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisHostAddress() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisHostAddress() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisHostPort() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisHostPort() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisKeystoreFilePassword() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisKeystoreFilePassword() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisKeystoreFilePath() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisKeystoreFilePath() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisKeystoreKeyPassword() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getRedisKeystoreKeyPassword() - Method in class com.reve.balancemanager.mitigation.Configuration
-
- getThresholdToReleaseFullAmount() - Method in class com.reve.balancemanager.BalanceManager
-
- getThresholdToReleaseFullAmount() - Method in class com.reve.balancemanager.BalanceManager
-
- immediateDatabaseBalanceUpdate(long) - Method in class com.reve.balancemanager.db.MysqlBalanceUpdater
-
When this account maintenance is needed and mysql balance need to be updated immediately,
this method does that
- immediateDatabaseBalanceUpdate(long) - Method in class com.reve.balancemanager.db.MysqlBalanceUpdater
-
When this account maintenance is needed and mysql balance need to be updated immediately,
this method does that
- increaseBalance(long, double, double) - Method in class com.reve.balancemanager.recharge.RechargeManager
-
Increase the balance for the given accountID
- increaseBalance(long, double, double) - Method in class com.reve.balancemanager.recharge.RechargeManager
-
Increase the balance for the given accountID
- increaseRedis(double) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Call hincrByFloat method in JedisCluster instance.
- increaseRedis(double) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Call hincrByFloat method in JedisCluster instance.
- increaseRedis(double) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Call hincrByFloat method in JedisCluster instance.
- increaseRedis(double) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Call hincrByFloat method in JedisCluster instance.
- init(long, BalanceManager) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Initialize a
LeaseDTO instance for the given account id
- init(long, double, BalanceManager) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
This initialization is useful when take-over is happening.
- init(long, BalanceManager) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Initialize a
LeaseDTO instance for the given account id
- init(long, double, BalanceManager) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
This initialization is useful when take-over is happening.
- init(BalanceManager, long, Double, Double) - Method in class com.reve.balancemanager.impl.MitigatorImpl
-
Initialize the instance specifying the account for which this thread will be called and under which mitigator
this thread will work
- init(BalanceManager, long, Double, Double) - Method in class com.reve.balancemanager.impl.MitigatorImpl
-
Initialize the instance specifying the account for which this thread will be called and under which mitigator
this thread will work
- init(long, BalanceManager) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Initialize a
LeaseDTO instance for the given account id
- init(long, double, BalanceManager) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
This initialization is useful when take-over is happening.
- init(long, BalanceManager) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Initialize a
LeaseDTO instance for the given account id
- init(long, double, BalanceManager) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
This initialization is useful when take-over is happening.
- init(BalanceManager, long, Double, Double) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
Initialize the instance specifying the account for which this thread will be called and under which mitigator
this thread will work
- init(BalanceManager, long, Double, Double) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
Initialize the instance specifying the account for which this thread will be called and under which mitigator
this thread will work
- isFrozen(long) - Method in class com.reve.balancemanager.BalanceManager
-
Check if the given account id is now in frozen mode or not.
- isFrozen(long) - Method in class com.reve.balancemanager.BalanceManager
-
Check if the given account id is now in frozen mode or not.
- isFrozen() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
- isFrozen() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
- isFrozen() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- isFrozen() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- 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.pubsub.MessageType
-
- LEASE_EMPTY_STATUS - Static variable in class com.reve.balancemanager.pubsub.MessageType
-
- LeaseDTO - Class in com.reve.balancemanager.lease
-
- LeaseDTO - Class in com.reve.balancemanager.lease
-
- LeaseDTO() - Constructor for class com.reve.balancemanager.lease.LeaseDTO
-
- LeaseDTO() - Constructor for class com.reve.balancemanager.lease.LeaseDTO
-
- LeaseDTOConstants - Class in com.reve.balancemanager.lease
-
- LeaseDTOConstants - Class in com.reve.balancemanager.lease
-
- LeaseDTOConstants() - Constructor for class com.reve.balancemanager.lease.LeaseDTOConstants
-
- LeaseDTOConstants() - Constructor for class com.reve.balancemanager.lease.LeaseDTOConstants
-
- LeaseDTOImpl - Class in com.reve.balancemanager.impl
-
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
- LeaseDTOImpl - Class in com.reve.balancemanager.impl
-
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
- LeaseDTOImpl() - Constructor for class com.reve.balancemanager.impl.LeaseDTOImpl
-
- LeaseDTOImpl() - Constructor for class com.reve.balancemanager.impl.LeaseDTOImpl
-
- LeaseResponse - Class in com.reve.balancemanager.lease
-
This class is used for returning multiple value for a lease request.
- LeaseResponse - Class in com.reve.balancemanager.lease
-
This class is used for returning multiple value for a lease request.
- LeaseResponse() - Constructor for class com.reve.balancemanager.lease.LeaseResponse
-
Default constructor
- LeaseResponse(double, double) - Constructor for class com.reve.balancemanager.lease.LeaseResponse
-
Constructor with two parameter
- LeaseResponse() - Constructor for class com.reve.balancemanager.lease.LeaseResponse
-
Default constructor
- LeaseResponse(double, double) - Constructor for class com.reve.balancemanager.lease.LeaseResponse
-
Constructor with two parameter
- loadBalanceInRedis(long) - Method in class com.reve.balancemanager.BalanceManager
-
Successful completion of this method will ensure the presence of this
LeaseDTO in redis
cluster Either in the nearest node or In the far node.
- loadBalanceInRedis(long) - Method in class com.reve.balancemanager.BalanceManager
-
Successful completion of this method will ensure the presence of this
LeaseDTO in redis
cluster Either in the nearest node or In the far node.
- loadLuaScript(String) - Static method in class com.reve.balancemanager.util.LuaScriptExecutor
-
This is to load the lua script in our java program.
- loadLuaScript(String) - Static method in class com.reve.balancemanager.util.LuaScriptExecutor
-
This is to load the lua script in our java program.
- loadMysqlBalance(Map<Long, Double>) - Static method in class com.reve.balancemanager.db.BalanceTable
-
- loadMysqlBalance(Map<Long, Double>) - Static method in class com.reve.balancemanager.db.BalanceTable
-
- LuaScriptExecutor - Class in com.reve.balancemanager.util
-
Contains the helper functions of the project
- LuaScriptExecutor - Class in com.reve.balancemanager.util
-
Contains the helper functions of the project
- LuaScriptExecutor() - Constructor for class com.reve.balancemanager.util.LuaScriptExecutor
-
- LuaScriptExecutor() - Constructor for class com.reve.balancemanager.util.LuaScriptExecutor
-
- OBJECT_TYPE_DIALOG - Static variable in class com.reve.balancemanager.RedundancyConstants
-
- OBJECT_TYPE_DIALOG - Static variable in class com.reve.balancemanager.RedundancyConstants
-
- OBJECT_TYPE_LEASE_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
-
- OBJECT_TYPE_LEASE_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
-
- OBJECT_TYPE_RATE_AND_LEASE_DETAILS_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
-
- OBJECT_TYPE_RATE_AND_LEASE_DETAILS_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
-
- OBJECT_TYPE_RATE_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
-
- OBJECT_TYPE_RATE_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
-
- OBJECT_TYPE_ROUTE_INFO_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
-
- OBJECT_TYPE_ROUTE_INFO_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
-
- onAccFreeze(long) - Method in interface com.reve.balancemanager.BalanceFreezer
-
- onAccFreeze(long) - Method in interface com.reve.balancemanager.BalanceFreezer
-
- onAccUnfreeze(long) - Method in interface com.reve.balancemanager.BalanceFreezer
-
- onAccUnfreeze(long) - Method in interface com.reve.balancemanager.BalanceFreezer
-
- onMessage(String, String) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Process the message received from the given channel.
- onMessage(String, String) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Process the message received from the given channel.
- onProcessShutdown(boolean) - Method in class com.reve.balancemanager.BalanceManager
-
We have taken advanced amount from redis cluster, so
When system is getting shut down, all the available cached balance should be returned to redis,
otherwise some money will be lost.
- onProcessShutdown(boolean) - Method in class com.reve.balancemanager.BalanceManager
-
We have taken advanced amount from redis cluster, so
When system is getting shut down, all the available cached balance should be returned to redis,
otherwise some money will be lost.
- onProcessShutdown(boolean) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Do all the task required to do while the application is shutting down.
- onProcessShutdown(boolean) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
Do all the task required to do while the application is shutting down.
- onProcessShutdown(boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Do all the task required to do while the application is shutting down.
- onProcessShutdown(boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Do all the task required to do while the application is shutting down.
- onSubscribe(String, int) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Process on subscribe successful event.
- onSubscribe(String, int) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Process on subscribe successful event.
- onUnsubscribe(String, int) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Process on subscribe successful event.
- onUnsubscribe(String, int) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Process on subscribe successful event.
- processAccFreezeAck(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- processAccFreezeAck(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- processAccFreezeCompete(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- processAccFreezeCompete(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- 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.
- processAccUnFreezeCompete(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- processAccUnFreezeCompete(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- 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.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.
- publishCompletedFreeze(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.
- publishCompletedUnfreeze(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
When balance matching is done by mitigation process, it will send an unfreeze request.
- publishCompletedUnfreeze(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
When balance matching is done by mitigation process, it will send an unfreeze request.
- publishEmptyLeaseStatus(long) - Method in class com.reve.balancemanager.pubsub.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.pubsub.PubSubPublisher
-
Whenever Balance manager detects zero balance in redis cache, it transmits a warning to all Balance manager.
- publishFreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
- publishFreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
- PublishMessage - Class in com.reve.balancemanager.pubsub
-
- PublishMessage - Class in com.reve.balancemanager.pubsub
-
- PublishMessage() - Constructor for class com.reve.balancemanager.pubsub.PublishMessage
-
- PublishMessage(String, String, long) - Constructor for class com.reve.balancemanager.pubsub.PublishMessage
-
- PublishMessage() - Constructor for class com.reve.balancemanager.pubsub.PublishMessage
-
- PublishMessage(String, String, long) - Constructor for class com.reve.balancemanager.pubsub.PublishMessage
-
- publishUnfreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
- publishUnfreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
- PubSubPublisher - Class in com.reve.balancemanager.pubsub
-
Publisher class to publish messages in Redis cluster pubsub
- PubSubPublisher - Class in com.reve.balancemanager.pubsub
-
Publisher class to publish messages in Redis cluster pubsub
- PubSubPublisher(String, ClusterObserver) - Constructor for class com.reve.balancemanager.pubsub.PubSubPublisher
-
- PubSubPublisher(String, ClusterObserver) - Constructor for class com.reve.balancemanager.pubsub.PubSubPublisher
-
- PubSubSubscriber - Class in com.reve.balancemanager.pubsub
-
Subscriber class to subscribe and listen to messages in Redis cluster pubsub
- PubSubSubscriber - Class in com.reve.balancemanager.pubsub
-
Subscriber class to subscribe and listen to messages in Redis cluster pubsub
- PubSubSubscriber(BalanceManager, JedisCluster, String[]) - Constructor for class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Create an instance of
Runnable to subscribe on the given channels.
- PubSubSubscriber(BalanceManager, JedisCluster, String[]) - Constructor for class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Create an instance of
Runnable to subscribe on the given channels.
- RechargeManager - Class in com.reve.balancemanager.recharge
-
This class is responsible for balance update in redis cluster.
- RechargeManager - Class in com.reve.balancemanager.recharge
-
This class is responsible for balance update in redis cluster.
- RechargeManager(String, int, String, SSLConfiguration) - Constructor for class com.reve.balancemanager.recharge.RechargeManager
-
Create an instance for Redis balance update with SSL.
- RechargeManager(ClusterObserver) - Constructor for class com.reve.balancemanager.recharge.RechargeManager
-
Create an instance for Redis balance update with SSL.
- RechargeManager(String, int, String, SSLConfiguration) - Constructor for class com.reve.balancemanager.recharge.RechargeManager
-
Create an instance for Redis balance update with SSL.
- RechargeManager(ClusterObserver) - Constructor for class com.reve.balancemanager.recharge.RechargeManager
-
Create an instance for Redis balance update with SSL.
- RedisCallDTO - Class in com.reve.balancemanager.lease
-
- RedisCallDTO - Class in com.reve.balancemanager.lease
-
- RedisCallDTO(LeaseDTO, double) - Constructor for class com.reve.balancemanager.lease.RedisCallDTO
-
Constructor
- RedisCallDTO(LeaseDTO, double) - Constructor for class com.reve.balancemanager.lease.RedisCallDTO
-
Constructor
- RedisCaller - Class in com.reve.balancemanager.lease
-
This thread will call redis balance increase method whenever required.
- RedisCaller - Class in com.reve.balancemanager.lease
-
This thread will call redis balance increase method whenever required.
- RedisCaller() - Constructor for class com.reve.balancemanager.lease.RedisCaller
-
- RedisCaller() - Constructor for class com.reve.balancemanager.lease.RedisCaller
-
- RedundancyConstants - Class in com.reve.balancemanager
-
- RedundancyConstants - Class in com.reve.balancemanager
-
- RedundancyConstants() - Constructor for class com.reve.balancemanager.RedundancyConstants
-
- RedundancyConstants() - Constructor for class com.reve.balancemanager.RedundancyConstants
-
- refundBalance(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
For some unsuccessful case we may need to refund the balance of a transaction.
- refundBalance(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
For some unsuccessful case we may need to refund the balance of a transaction.
- reset() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- reset() - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- returnAvailableBalancePercentage(double) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
-
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.impl.LeaseDTOImpl
-
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.lease.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.lease.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, boolean) - 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, boolean) - 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.db.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.db.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.lease.RedisCaller
-
Thread run method
- run() - Method in class com.reve.balancemanager.lease.RedisCaller
-
Thread run method
- run() - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Thread run method.
- run() - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Thread run method.
- run() - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Thread run method.
- run() - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Thread run method.
- savePendingCall(RedisCallDTO) - Method in class com.reve.balancemanager.lease.RedisCaller
-
Save this redisCall in pending call list to be called whenever possible.
- 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.
- 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.
- setAccountID(long) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setAccountID(long) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setAmount(double) - Method in class com.reve.balancemanager.lease.RedisCallDTO
-
- 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.
- 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
- 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
-
- setChannel(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setEnableRedisCall(boolean) - Method in class com.reve.balancemanager.BalanceManager
-
- 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.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
- 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
-
- 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.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.
- setLocalBalanceSyncTime(long) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Set the timestamp in millis when last time this instance was synced with slaved.
- setMessageType(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setMessageType(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setMysqlAmount(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- 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) - 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.
- 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
-
- setPercentageToRelease(double) - Method in class com.reve.balancemanager.BalanceManager
-
- setRedisAmount(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
-
- 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
- setThresholdToReleaseFullAmount(double) - Method in class com.reve.balancemanager.BalanceManager
-
Setter to configure threshold under which Balance Manager will release the full available amount
- shutDown() - Method in class com.reve.balancemanager.db.MysqlBalanceUpdater
-
Shutting down this thread.
- 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.lease.RedisCaller
-
Shut down this thread.
- shutDown() - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Shutdown this thread
- shutDown() - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Shutdown this thread
- 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.
- 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
-
- 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.
- 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.impl.LeaseDTOImpl
-
- syncBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Check and assign values in #localBalanceSyncTime.
- syncBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Check and assign values in #localBalanceSyncTime.