public class PubSubPublisher extends Object
| Constructor and Description |
|---|
PubSubPublisher(String identifier,
redis.clients.jedis.JedisCluster jedisCluster) |
| Modifier and Type | Method and Description |
|---|---|
void |
ackFreezeRequest(long accountID)
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.
|
void |
publishCompletedFreeze(long accountID)
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.
|
void |
publishCompletedUnfreeze(long accountID)
When balance matching is done by mitigation process, it will send an unfreeze request.
|
void |
publishEmptyLeaseStatus(long accountID)
Whenever Balance manager detects zero balance in redis cache, it transmits a warning to all Balance manager.
|
public PubSubPublisher(String identifier, redis.clients.jedis.JedisCluster jedisCluster)
public void publishEmptyLeaseStatus(long accountID)
accountID - Account ID for which balance goes to zero in redis.public void ackFreezeRequest(long accountID)
accountID - Account ID for which freeze request was received.public void publishCompletedFreeze(long accountID)
accountID - Account ID for which freeze request was received.public void publishCompletedUnfreeze(long accountID)
accountID - Account ID for which unfreeze request was received.Copyright © 2022. All rights reserved.