Eric Zhao fca70646ad Bump version to 1.8.2-SNAPSHOT | 3 лет назад | |
---|---|---|
.. | ||
src | 5 лет назад | |
README.md | 3 лет назад | |
pom.xml | 3 лет назад |
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();