public class DummyEngine extends AbstractSMSEngine
messageScheduler, modelService, phoneNumberService, STARTUP_DELAY_PARAMETER| Constructor and Description |
|---|
DummyEngine() |
| Modifier and Type | Method and Description |
|---|---|
int |
getStartupDelaySeconds()
Called when starting up to find out how many seconds should the engine wait before starting up, to let the hybris suite
prepare to process incoming traffic
|
boolean |
isAvailable(AggregatorSettingsDTO settings)
Tells if the engine currently accepts messages or not.
|
void |
send(AggregatorSettingsDTO settings,
OutgoingSMSMessageDTO message)
Called by mobile framework for immediate sending of a SMS message.
|
getEngineId, setBeanName, setMessageScheduler, setModelService, setPhoneNumberService, shutdown, startup, updateAggregatorspublic boolean isAvailable(AggregatorSettingsDTO settings)
SMSEnginefalse to signal temporary
unavailability.
If there is a general (e.g. configuration) problem this should rather be
causing a exception in SMSEngine.send(AggregatorSettingsDTO, OutgoingSMSMessageDTO) instead.isAvailable in interface SMSEngineisAvailable in class AbstractSMSEnginesettings - the settings of the specific aggregator to checkpublic void send(AggregatorSettingsDTO settings, OutgoingSMSMessageDTO message) throws SMSEngineException
SMSEnginesettings - the settings of the specific aggregator to send tomessage - the message including aggregator account dataSMSEngineExceptionpublic int getStartupDelaySeconds()
SMSEnginegetStartupDelaySeconds in interface SMSEnginegetStartupDelaySeconds in class AbstractSMSEngineCopyright © 2018 SAP SE. All Rights Reserved.