seninel部署
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 573B

1234567891011121314151617181920212223
  1. # Sentinel Reactor Adapter
  2. > Note: this module requires Java 8 or later version.
  3. Sentinel provides integration module for [Reactor](https://projectreactor.io/).
  4. Add the following dependency in `pom.xml` (if you are using Maven):
  5. ```xml
  6. <dependency>
  7. <groupId>com.alibaba.csp</groupId>
  8. <artifactId>sentinel-reactor-adapter</artifactId>
  9. <version>x.y.z</version>
  10. </dependency>
  11. ```
  12. Example:
  13. ```java
  14. someService.doSomething() // return type: Mono<T> or Flux<T>
  15. .transform(new SentinelReactorTransformer<>(resourceName)) // transform here
  16. .subscribe();
  17. ```