ru.bitel.bgbilling.kernel.contract.balance.server.event

## Class ConvergenceBalanceEvent

- java.lang.Object
- - ru.bitel.bgbilling.kernel.event.Event
  - - ru.bitel.bgbilling.kernel.event.QueueEvent
    - - ru.bitel.bgbilling.kernel.event.LocalEvent
      - - ru.bitel.bgbilling.kernel.contract.balance.server.event.ConvergenceBalanceEvent

- All Implemented Interfaces:
    java.io.Serializable

      public class ConvergenceBalanceEvent
      extends LocalEvent

  Событие, о том, что баланс стал выше лимит или ниже лимита. Может посылаться несколько раз, но гораздо реже чем просто сообщения об изменении наработки. Создан для агрегирования сообщений об изменении наработки.
  Author:
    amir
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected java.math.BigDecimal` | `balance`
    `protected boolean` | `balanceExceedsLimit`
    `protected java.math.BigDecimal` | `limit`
    `protected boolean` | `saldoExceedsZero`

    - ### Fields inherited from class ru.bitel.bgbilling.kernel.event.Event

      `CONTRACT_GLOBAL, NO_MODULE, NO_PLUGIN`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `ConvergenceBalanceEvent()`
    `` | `ConvergenceBalanceEvent(int contractId, boolean balanceExceedsLimit, boolean saldoExceedsZero, java.math.BigDecimal balance, java.math.BigDecimal limit)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.math.BigDecimal` | `getBalance()`
    `java.math.BigDecimal` | `getLimit()`
    `boolean` | `isBalanceExceedsLimit()`
    `boolean` | `isBalanceUnderLimit()` Deprecated.
    `boolean` | `isSaldoExceedsZero()`

    - ### Methods inherited from class ru.bitel.bgbilling.kernel.event.Event

      `getContractId, getContractID, getDestination, getGenerateTime, getModuleId, getModuleID, getPluginId, getSuperContractId, getTime, getTimestamp, getTypeId, getUserId, prepareMessage, toString, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### balanceExceedsLimit

          protected final boolean balanceExceedsLimit

    - #### saldoExceedsZero

          protected final boolean saldoExceedsZero

    - #### balance

          protected final java.math.BigDecimal balance

    - #### limit

          protected final java.math.BigDecimal limit

  - ### Constructor Detail

    - #### ConvergenceBalanceEvent

          protected ConvergenceBalanceEvent()

    - #### ConvergenceBalanceEvent

          public ConvergenceBalanceEvent(int contractId,
                                         boolean balanceExceedsLimit,
                                         boolean saldoExceedsZero,
                                         java.math.BigDecimal balance,
                                         java.math.BigDecimal limit)

  - ### Method Detail

    - #### isBalanceUnderLimit

          @Deprecated
          public boolean isBalanceUnderLimit()

      Deprecated.

    - #### getBalance

          public java.math.BigDecimal getBalance()

    - #### getLimit

          public java.math.BigDecimal getLimit()

    - #### isBalanceExceedsLimit

          public boolean isBalanceExceedsLimit()

    - #### isSaldoExceedsZero

          public boolean isSaldoExceedsZero()