BalanceTable.CLIENT_BALANCE_TABLE table.BalanceManager.BalanceManager.BalanceManager.BalanceTable.CLIENT_BALANCE_TABLE which are active.LeaseDTO those needed to be synced.BalanceManager.clusterObserverLeaseDTO mapped with the given account id.BalanceManager.pubSubPublisherJedisCluster instance.JedisCluster instance.LeaseDTO instance for the given account idLeaseDTO instance for the given account idLeaseDTO for all the given clients at the startup.LeaseDTOImpl.balanceManager identifier into redis BalanceManager.BM_ID_FIELD field via Lua scriptLeaseDTO in redis
cluster Either in the nearest node or In the far node.BalanceTable.CLIENT_BALANCE_TABLE table into the given map.LeaseDTO.getLease(double, LeaseResponse, boolean) is calledLeaseDTO.LeaseDTO.getLease(double, LeaseResponse, boolean) is calledMessageType.ACK_FREEZE_REQUEST message from the given balance manager.MessageType.FREEZE_COMPLETE message from the given balance manager.MessageType.UNFREEZE_COMPLETE message from the given balance manager.MessageType.FREEZE_REQUEST message in Channels.BALANCE_FREEZE_CHANNEL to
freeze the given account ID.MessageType.UNFREEZE_REQUEST message in Channels.BALANCE_FREEZE_CHANNEL to
un-freeze the given account ID.Runnable to subscribe on the given channels.RedisCaller thread, An instance of this RedisCallDTO dto class
must be pushed into the queue of RedisCaller thread.BalanceManagerRedisLoaderLeaseDTO asynchronously, this method must be called with an
instance of RedisCallDTO.BalanceManager.returnLeaseOnRequest(long, boolean)
is calledLeaseDTO.onProcessShutdown(boolean)ShutdownCallerBalanceManager to update mysql balance as well, then this method must be called with true
By default BalanceManager will not update mysql balance.LeaseDTOImpl.localBalanceSyncTime.LeaseDTO with this latest attributes.LeaseDTO with this latest attributes.BalanceStatus.setMysqlAmount(double) for all the instance of BalanceStatus of
the given map.Copyright © 2023. All rights reserved.