Class R2dbcMybatisDatabaseRoutingOperator
java.lang.Object
pro.chenggang.project.reactive.mybatis.support.r2dbc.spring.routing.context.R2dbcMybatisDatabaseRoutingOperator
The r2dbc mybatis database routing operator.
- Since:
- 2.0.0
- Version:
- 1.0.0
- Author:
- Gang Cheng
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> reactor.core.publisher.Flux<T>executeFlux(String targetRoutingKey, reactor.core.publisher.Flux<T> flux) Execute flux with target routing key.static <T> reactor.core.publisher.Mono<T>executeMono(String targetRoutingKey, reactor.core.publisher.Mono<T> mono) Execute mono with target routing key.
-
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 keymono- 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 keyflux- the flux execution- Returns:
- the flux execution surround with auto routing operation
-