实践Sentinel之sentinel-dashboard

DynamicRuleProvider

1
2
3
4
public interface DynamicRuleProvider<T> {

    T getRules(String appName) throws Exception;
}

DynamicRuleProvider

DynamicRulePublisher

1
2
3
4
5
6
7
8
9
10
11
public interface DynamicRulePublisher<T> {

    /**
     * Publish rules to remote rule configuration center for given application name.
     *
     * @param app app name
     * @param rules list of rules to push
     * @throws Exception if some error occurs
     */
    void publish(String app, T rules) throws Exception;
}

DynamicRulePublisher