Java Code Examples for com.alibaba.csp.sentinel.adapter.gateway.common.rule.GatewayFlowRule#getResourceMode()

The following examples show how to use com.alibaba.csp.sentinel.adapter.gateway.common.rule.GatewayFlowRule#getResourceMode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GatewayParamParserTest.java    From Sentinel-Dashboard-Nacos with Apache License 2.0 4 votes vote down vote up
@Override
public boolean test(GatewayFlowRule e) {
    return e.getResourceMode() == SentinelGatewayConstants.RESOURCE_MODE_ROUTE_ID;
}
 
Example 2
Source File: GatewayParamParserTest.java    From Sentinel-Dashboard-Nacos with Apache License 2.0 4 votes vote down vote up
@Override
public boolean test(GatewayFlowRule e) {
    return e.getResourceMode() == SentinelGatewayConstants.RESOURCE_MODE_CUSTOM_API_NAME;
}
 
Example 3
Source File: GatewayParamParserTest.java    From Sentinel with Apache License 2.0 4 votes vote down vote up
@Override
public boolean test(GatewayFlowRule e) {
    return e.getResourceMode() == SentinelGatewayConstants.RESOURCE_MODE_ROUTE_ID;
}
 
Example 4
Source File: GatewayParamParserTest.java    From Sentinel with Apache License 2.0 4 votes vote down vote up
@Override
public boolean test(GatewayFlowRule e) {
    return e.getResourceMode() == SentinelGatewayConstants.RESOURCE_MODE_CUSTOM_API_NAME;
}