public interface SMSEngine
| Modifier and Type | Method and Description |
|---|---|
String |
getEngineId()
Provides the unique engine id.
|
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 aggregatorSettings)
Tells if the engine currently accepts messages or not.
|
void |
send(AggregatorSettingsDTO aggregatorSettings,
OutgoingSMSMessageDTO message)
Called by mobile framework for immediate sending of a SMS message.
|
void |
shutdown()
Called once the system is about to shut down.
|
void |
startup(Collection<AggregatorSettingsDTO> aggregatorSettings)
Called once upon system startup.
|
void |
updateAggregators(Collection<AggregatorSettingsDTO> aggregatorSettings)
May be called while being connected.
|
String getEngineId()
void send(AggregatorSettingsDTO aggregatorSettings, OutgoingSMSMessageDTO message) throws SMSEngineException
aggregatorSettings - the settings of the specific aggregator to send tomessage - the message including aggregator account dataSMSEngineExceptionboolean isAvailable(AggregatorSettingsDTO aggregatorSettings)
false to signal temporary
unavailability.
If there is a general (e.g. configuration) problem this should rather be
causing a exception in send(AggregatorSettingsDTO, OutgoingSMSMessageDTO) instead.aggregatorSettings - the settings of the specific aggregator to checkvoid startup(Collection<AggregatorSettingsDTO> aggregatorSettings)
aggregatorSettings - the settings of all aggregators which are using this enginevoid updateAggregators(Collection<AggregatorSettingsDTO> aggregatorSettings)
aggregatorSettings - void shutdown()
int getStartupDelaySeconds()
Copyright © 2017 SAP SE. All Rights Reserved.