Sentinel
Sentinel copied to clipboard
[API-CHANGE] Bring nouveau Sentinel entry API in Sentinel 2.0
Issue Description
Type: feature request
Describe what happened (or what feature you want)
Bring nouveau Sentinel entry API in Sentinel 2.0. An example:
try (Sentinel.entry(resourceName)) {
// your logic here
} catch (BlockException e) {
// your block handler here
}
NOTE: The legacy SphU
and SphO
API will not be deprecated, but we'll recommend using the new API for Sentinel 2.0.
Sentinel 2.0相比1.8.x会有很大的变更吗? 可以将开源的2.0版本直接merge到二开的版本上(基于1.8.x)吗?
There will be breaking changes in Sentinel 2.0, but we'll try to keep compatibility with Sentinel 1.8.x.
是所有api都发生了很大的变化嘛? 还是只是部分使用上的改变? 是类似nacos 1.x到2.x的大变更升级?还是只是增加部分功能以及部分Api名称的变化?
希望可以更方便的和配置中心联动,有部分需要修改源码才能和nacos配置中心联动