public class DefaultOutgoingMessageProcessor extends java.lang.Object implements OutgoingMessageProcessor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAX_RETRIES_PARAM |
protected MessagePricingStrategy |
messagePricingStrategy |
protected ModelService |
modelService |
protected PhoneListService |
phoneListService |
static java.lang.String |
RETRY_DELAY_PARAM |
| Constructor and Description |
|---|
DefaultOutgoingMessageProcessor() |
public static final java.lang.String MAX_RETRIES_PARAM
public static final java.lang.String RETRY_DELAY_PARAM
protected ModelService modelService
protected PhoneListService phoneListService
protected MessagePricingStrategy messagePricingStrategy
public void process(MobileMessageContextModel data) throws RetryLaterException
process in interface OutgoingMessageProcessorRetryLaterExceptionprotected void processUnavailableRoute(MobileMessageContextModel data, RouteNotAvailableException routeNotAvailableException) throws RetryLaterException
RetryLaterExceptionprotected boolean isAllowedToRetry(MobileMessageContextModel msg, MobileShortcodeModel shortcode)
protected int getRetryDelayInSeconds(MobileMessageContextModel msg, MobileShortcodeModel shortcode)
protected int getCurrentRetriesCount(MobileMessageContextModel msg)
protected int getMaxRetries(MobileShortcodeModel shortcode)
protected void downgradeLink(MobileMessageContextModel data)
public void setSmsEngineRegistry(SMSEngineRegistry smsEngineRegistry)
public void setOutgoingMessageRouter(OutgoingMessageRoutingStrategy outgoingMessageRouter)
public void setPhoneNumberService(PhoneNumberService phoneNumberService)
public void setModelService(ModelService modelService)
public void setPhoneListService(PhoneListService helper)
public void setMessagePricingStrategy(MessagePricingStrategy messagePriceHelper)
Copyright © 2018 SAP SE. All Rights Reserved.