public class RatelimitHandler extends Object implements FakeResponseHandler, org.springframework.boot.CommandLineRunner, SubTimerTask
| 构造器和说明 |
|---|
RatelimitHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doSchedule() |
List<RatelimitStrategy> |
findRatelimitStrategies(String serviceId) |
Object |
handle(org.springframework.web.server.ServerWebExchange exchange,
boolean preHandle) |
void |
initRemoteRules() |
long |
interval() |
int |
order() |
void |
removeRatelimitStrategy(RatelimitStrategy strategy) |
void |
removeRatelimitStrategy(String serviceId,
String id) |
void |
run(String... args) |
String |
saveRatelimitStrategy(RatelimitStrategy strategy) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelaypublic Object handle(org.springframework.web.server.ServerWebExchange exchange, boolean preHandle)
handle 在接口中 FakeResponseHandlerpublic List<RatelimitStrategy> findRatelimitStrategies(String serviceId)
public String saveRatelimitStrategy(RatelimitStrategy strategy)
public void removeRatelimitStrategy(RatelimitStrategy strategy)
public int order()
order 在接口中 FakeResponseHandlerpublic void run(String... args) throws Exception
run 在接口中 org.springframework.boot.CommandLineRunnerExceptionpublic void doSchedule()
doSchedule 在接口中 SubTimerTaskpublic void initRemoteRules()
public long interval()
interval 在接口中 SubTimerTaskCopyright © 2025. All rights reserved.