接口 RequestProcessor<T,R>

类型参数:
T - type of request body
R - type of response body
所有已知实现类:
FlowRequestProcessor, ParamFlowRequestProcessor

public interface RequestProcessor<T,R>
Interface of cluster request processor.
从以下版本开始:
1.4.0
作者:
Eric Zhao
  • 方法概要

    修饰符和类型
    方法
    说明
    com.alibaba.csp.sentinel.cluster.response.ClusterResponse<R>
    processRequest(com.alibaba.csp.sentinel.cluster.request.ClusterRequest<T> request)
    Process the cluster request.
  • 方法详细资料

    • processRequest

      com.alibaba.csp.sentinel.cluster.response.ClusterResponse<R> processRequest(com.alibaba.csp.sentinel.cluster.request.ClusterRequest<T> request)
      Process the cluster request.
      参数:
      request - Sentinel cluster request
      返回:
      the response after processed