public class RecipientLimitRule
extends java.lang.Object
| Constructor and Description |
|---|
RecipientLimitRule(java.lang.String key,
java.lang.String secret,
int messagesLimit,
int timePeriodInMinutes)
Rule to set how many messages can be sent to a specific recipient within a specified time.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKey() |
int |
getMessagesLimit() |
java.lang.String |
getSecret() |
int |
getTimePeriodInMinutes() |
public RecipientLimitRule(java.lang.String key,
java.lang.String secret,
int messagesLimit,
int timePeriodInMinutes)
throws LimitRuleException
key - found from your account settings pagesecret - found from your account settings pagemessagesLimit - Maximum number of messages to send within the specified time period. Must be greater than 0timePeriodInMinutes - The period in which the messages limit applies. Must be greater than 0LimitRuleException - Thrown usually when one of the parameters is missing or when the primitive parameters (messagesLimit & timePeriodInMinutes) are less than 1.