Config¶
-
public class
Config
¶ A connection to a particular SMS provider, there may be more than one config for a given provider and/or multiple connections to multiple providers. But realistically, most implementations will have one config.
Methods¶
getMaxRetries¶
getProps¶
-
public List<ConfigProp>
getProps
()¶ Returns: additional configuration properties that will be always passed to the template
getSplitHeader¶
getTemplateName¶
retryOrAbortStatus¶
-
public String
retryOrAbortStatus
(Integer failureCount)¶ Returns an appropriate Delivery Status for the given failure count. If the failure count is higher than the maximum number of retries for this configuration, then ABORTED Status is returned. Otherwise RETRYING Status is returned, indicating the retries are ongoing.
Parameters: - failureCount – the failure count to check
Returns: the delivery status matching the failure count
retryOrAbortSubject¶
-
public String
retryOrAbortSubject
(Integer failureCount)¶ Returns an appropriate subject for an event indicating an SMS send failure. If the failure count is higher than the maximum number of retries for this configuration, then a subject indicating that to abort the SMS will be sent.
Parameters: - failureCount – the failure count to check
Returns: the subject for the event
setMaxRetries¶
setName¶
setProps¶
-
public void
setProps
(List<ConfigProp> props)¶ Parameters: - props – additional configuration properties that will be always passed to the template