Eric Zhao 086a6b0370 Support resource classification in Reactor adapter module and polish SC Gateway adapter | 5 년 전 | |
---|---|---|
.. | ||
src | 5 년 전 | |
README.md | 5 년 전 | |
pom.xml | 5 년 전 |
Note: this module requires Java 8 or later version.
Sentinel provides integration module for Reactor.
Add the following dependency in pom.xml
(if you are using Maven):
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-reactor-adapter</artifactId>
<version>x.y.z</version>
</dependency>
Example:
someService.doSomething() // return type: Mono<T> or Flux<T>
.transform(new SentinelReactorTransformer<>(resourceName)) // transform here
.subscribe();