Class ConvergenceBalanceEvent
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.kernel.event.common.Event
ru.bitel.bgbilling.kernel.event.common.QueueEvent
ru.bitel.bgbilling.kernel.event.common.LocalEvent
ru.bitel.bgbilling.kernel.contract.balance.server.event.ConvergenceBalanceEvent
- All Implemented Interfaces:
Serializable
,ErrorReturnableEvent
public class ConvergenceBalanceEvent
extends ru.bitel.bgbilling.kernel.event.common.LocalEvent
Событие, о том, что баланс стал выше лимит или ниже лимита. Может посылаться несколько раз,
но гораздо реже чем просто сообщения об изменении наработки.
Создан для агрегирования сообщений об изменении наработки.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BigDecimal
protected final boolean
protected final BigDecimal
protected final boolean
Fields inherited from class ru.bitel.bgbilling.kernel.event.common.Event
CONTRACT_GLOBAL, NO_MODULE, NO_PLUGIN
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConvergenceBalanceEvent
(int contractId, boolean balanceExceedsLimit, boolean saldoExceedsZero, BigDecimal balance, BigDecimal limit) -
Method Summary
Methods inherited from class ru.bitel.bgbilling.kernel.event.common.LocalEvent
getError, setError
Methods inherited from class ru.bitel.bgbilling.kernel.event.common.Event
getContractId, getDestination, getGenerateTime, getMessageID, getModuleId, getPluginId, getSource, getSuperContractId, getTime, getTimestamp, getTypeId, getUserId, isLogFunctionProcess, prepareMessage, serializeAsObject, setLogFunctionProcess, setMessageID, setSource, toString, toString
Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError
-
Field Details
-
balanceExceedsLimit
protected final boolean balanceExceedsLimit -
saldoExceedsZero
protected final boolean saldoExceedsZero -
balance
-
limit
-
-
Constructor Details
-
ConvergenceBalanceEvent
protected ConvergenceBalanceEvent() -
ConvergenceBalanceEvent
public ConvergenceBalanceEvent(int contractId, boolean balanceExceedsLimit, boolean saldoExceedsZero, BigDecimal balance, BigDecimal limit)
-
-
Method Details
-
isBalanceUnderLimit
Deprecated. -
getBalance
-
getLimit
-
isBalanceExceedsLimit
public boolean isBalanceExceedsLimit() -
isSaldoExceedsZero
public boolean isSaldoExceedsZero()
-