| Constructor and Description |
|---|
Mitigator() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addBMToACKSet(String BMIdentifier)
Add the name of the balance manager in the ack received list.
|
abstract void |
addBMToFrozenSet(String BMIdentifier)
Add the name of the balance manager in the account freeze complete message received list.
|
abstract void |
addBMToUnfrozenSet(String BMIdentifier)
Add the name of the balance manager in the account unfrozen complete received list.
|
protected static void |
getClassReference() |
static Mitigator |
getInstance() |
abstract void |
init(BalanceManager balanceManager,
long accountID,
Double balance,
Double credit)
Initialize the instance specifying the account for which this thread will be called and under which mitigator
this thread will work
|
public abstract void init(BalanceManager balanceManager, long accountID, Double balance, Double credit)
accountID - the account for which balance sync between MySQL and Redis will happenbalance - Balance amount present in mysql for this account id.credit - Credit amount present in mysql for this account id.balanceManager - BalanceMitigator reference for mitigatorpublic abstract void addBMToACKSet(String BMIdentifier)
BMIdentifier - Identification name of the balance managerpublic abstract void addBMToFrozenSet(String BMIdentifier)
BMIdentifier - Identification name of the balance managerpublic abstract void addBMToUnfrozenSet(String BMIdentifier)
BMIdentifier - Identification name of the balance managerpublic static Mitigator getInstance()
protected static void getClassReference()
Copyright © 2024. All rights reserved.