RateLimiterService.java 399 B

12345678910111213141516
  1. package cn.com.goldenwater.service;
  2. import reactor.core.publisher.Mono;
  3. public interface RateLimiterService {
  4. /**
  5. * 检查第三方服务在特定路径上是否被允许访问(限流检查)
  6. *
  7. * @param thirdPartyId 第三方服务ID
  8. * @param path 访问路径
  9. * @return 是否允许访问
  10. */
  11. Mono<Boolean> isAllowed(String thirdPartyId, String path);
  12. }