Class MessageProcessor

java.lang.Object
ru.bitel.bgbilling.plugins.dispatch.server.bean.MessageProcessor

public class MessageProcessor extends Object
Обработчик шаблонов сообщений
  • Field Details

    • con

      protected Connection con
    • macroPattern

      protected static final Pattern macroPattern
  • Constructor Details

    • MessageProcessor

      public MessageProcessor(Connection con) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
  • Method Details

    • processMacro

      protected final ru.bitel.bgbilling.plugins.dispatch.server.bean.MessageProcessor.ProcessResult processMacro(String messageBody, Subscription sub) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • send

      public final void send(Dispatch dispatch, List<Subscription> subs, DispatchMessage message, DispatchService dispatchService) throws ru.bitel.bgbilling.common.BGException
      Отправляем сообщение (приходят сюда по очереди, если несколько) рассылки для всех подписчиков.
      Parameters:
      dispatch - рассылка
      subs - список подписок
      message - сообщение
      dispatchService -
      Throws:
      ru.bitel.bgbilling.common.BGException