Class R2dbcMybatisDatabaseRoutingOperator

java.lang.Object
pro.chenggang.project.reactive.mybatis.support.r2dbc.spring.routing.context.R2dbcMybatisDatabaseRoutingOperator

public class R2dbcMybatisDatabaseRoutingOperator extends Object
The r2dbc mybatis database routing operator.
Since:
2.0.0
Version:
1.0.0
Author:
Gang Cheng
  • Constructor Details

    • R2dbcMybatisDatabaseRoutingOperator

      public R2dbcMybatisDatabaseRoutingOperator()
  • Method Details

    • executeMono

      public static <T> reactor.core.publisher.Mono<T> executeMono(String targetRoutingKey, reactor.core.publisher.Mono<T> mono)
      Execute mono with target routing key.
      Type Parameters:
      T - the type parameter
      Parameters:
      targetRoutingKey - the target routing key
      mono - the mono execution
      Returns:
      the mono execution surround with auto routing operation
    • executeFlux

      public static <T> reactor.core.publisher.Flux<T> executeFlux(String targetRoutingKey, reactor.core.publisher.Flux<T> flux)
      Execute flux with target routing key.
      Type Parameters:
      T - the type parameter
      Parameters:
      targetRoutingKey - the target routing key
      flux - the flux execution
      Returns:
      the flux execution surround with auto routing operation