| 限定符和类型 | 类和说明 |
|---|---|
static class |
RateLimitMsgSender.CacheItem |
| 构造器和说明 |
|---|
RateLimitMsgSender(String name) |
public RateLimitMsgSender(String name)
public SendResult send(String phone, String tmplName, String... tmplArgs)
MsgSenderprotected SendResult doSend(String key, String phone, String tmplName, String... tmplArgs)
protected RateLimitRejection reject(String phone, String tmplName, String key, String tip)
public MsgSender getMsgSender()
public void setMsgSender(MsgSender msgSender)
public KeyResolver getKeyResolver()
public void setKeyResolver(KeyResolver keyResolver)
public CacheService getCacheService()
public void setCacheService(CacheService cacheService)
public String getCachePrefix()
public void setCachePrefix(String cachePrefix)
public int getMaxAllowPerUnit()
public void setMaxAllowPerUnit(int maxAllowPerUnit)
public long getUnitSeconds()
public void setUnitSeconds(long unitSeconds)
public int getCacheSeconds()
public void setCacheSeconds(int cacheSeconds)
public int getMinIntervalSeconds()
public void setMinIntervalSeconds(int minIntervalSeconds)
public boolean isRejectIfKeyBlank()
public void setRejectIfKeyBlank(boolean rejectIfKeyBlank)
public boolean isErrorIfReject()
public void setErrorIfReject(boolean errorIfReject)
Copyright © 2024. All rights reserved.