seninel部署
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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. ```