public class CurrentLimitInterceptor extends AbstractInterceptor
CurrentLimiter| 构造器和说明 |
|---|
CurrentLimitInterceptor(CurrentLimiter limiter) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
handleRequest(Request request)
This method is called in two scenarios:
Before the client sends the request;
Before the server processes the request.
|
aroundProcess, handleResponsepublic CurrentLimitInterceptor(CurrentLimiter limiter)
public boolean handleRequest(Request request)
InterceptorhandleRequest 在接口中 InterceptorhandleRequest 在类中 AbstractInterceptorrequest - request content, when the business is implemented, it needs to be converted into the type
required by the specific protocol.Copyright © 2019 Baidu, Inc.. All rights reserved.