Пример #1
0
 /**
  *
  *
  * <pre>
  * 做流控规则限制
  * </pre>
  *
  * @param invoker
  */
 public void disable(HttpClientInvoker invoker) {
   // 目前仅禁用ip
   this.ipPools.disableIp(invoker.getShopType(), invoker.getIp());
 }
Пример #2
0
 public HttpClientInvoker provide(final String url, final HttpClientInvoker refer) {
   return this.provide(
       refer.getShopType(), url, refer.getUrl(), refer.getIp(), refer.getUserAgent());
 }