public interface SMSEngineRegistry
SMSEngine instances.| Modifier and Type | Method and Description |
|---|---|
Set<SMSEngine> |
getAllEngines()
Returns all registered engines.
|
SMSEngine |
getEngine(EnginesType engine)
Returns a engine for a specific engine enum.
|
boolean |
isAvailable(MobileAggregatorModel aggregator)
Checks if the engine for the given aggregator is actually available.
|
boolean |
isValidEngine(EnginesType engine)
Tells whether a given id is a valid
SMSEngine id. |
void |
send(MobileAggregatorModel aggregator,
MobileMessageContextModel message)
Performs sending using the appropriate engine for the specified aggregator and
the specified message.
|
void |
shutdownEngines()
Called to shut down engines once per tenant shutdown.
|
void |
startupEngines()
Called to start up engines once per tenant startup.
|
void |
updateEngines()
May be called to update engines with current aggregator settings.
|
SMSEngine getEngine(EnginesType engine)
IllegalArgumentException - if no such engine existsboolean isValidEngine(EnginesType engine)
SMSEngine id.void startupEngines()
void shutdownEngines()
void updateEngines()
void send(MobileAggregatorModel aggregator, MobileMessageContextModel message) throws SMSEngineException
aggregator - the aggregator to specify the engine to be usedmessage - the message context item to useSMSEngineException - in case of sending errorIllegalArgumentException - in case the aggregator holds a invalid engine idboolean isAvailable(MobileAggregatorModel aggregator)
aggregator - the aggregator to checkCopyright © 2017 SAP SE. All Rights Reserved.