WebFluxAutoConfiguration

@EnableConfigurationProperties(value = [WebFluxProperties::class])
@ConditionalOnClass(name = ["org.springframework.web.server.WebFilter", "me.ahoo.wow.webflux.route.command.CommandHandlerFunction"])
class WebFluxAutoConfiguration

WebFlux Auto Configuration .

Author

ahoo wang

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun batchExecutionPolicy(webFluxProperties: WebFluxProperties): BatchExecutionPolicy
Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun commandBuilderExtractor(): CommandBuilderExtractor
Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun commandMessageExtractor(commandMessageFactory: CommandMessageFactory, commandBuilderExtractor: CommandBuilderExtractor, commandRequestHeaderAppenderObjectProvider: ObjectProvider<CommandRequestHeaderAppender>): CommandMessageExtractor
Link copied to clipboard
@Bean
@ConditionalOnProperty(value = ["wow.webflux.command.request.appender.ip.enabled"], matchIfMissing = true, havingValue = "true")
fun commandRequestRemoteIpHeaderAppender(): CommandRequestRemoteIpHeaderAppender
Link copied to clipboard
@Bean
@ConditionalOnProperty(value = ["wow.webflux.command.request.appender.agent.enabled"], matchIfMissing = true, havingValue = "true")
fun commandRequestUserAgentHeaderAppender(): CommandRequestUserAgentHeaderAppender
Link copied to clipboard
@Bean
@Order(value = -2147483648)
@ConditionalOnMissingBean
fun commandRouteModule(waitCoordinator: WaitCoordinator, commandGateway: CommandGateway, commandMessageExtractor: CommandMessageExtractor, exceptionHandler: RequestExceptionHandler, commandWaitPolicy: CommandWaitPolicy): CommandRouteModule
Link copied to clipboard
@Bean
fun commandRouterFunction(routerSpecs: RouterSpecs, routeHandlerFunctionRegistrar: RouteHandlerFunctionRegistrar): RouterFunction<ServerResponse>
Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun commandWaitPolicy(): CommandWaitPolicy
Link copied to clipboard
@Bean
@Order(value = -2147483648)
@ConditionalOnMissingBean
fun eventRouteModule(snapshotRepository: SnapshotRepository, stateEventCompensator: StateEventCompensator, eventCompensateSupporter: EventCompensateSupporter, exceptionHandler: RequestExceptionHandler, batchExecutionPolicy: BatchExecutionPolicy): EventRouteModule
Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun exceptionHandler(errorStrategy: WebFluxErrorStrategy): RequestExceptionHandler
Link copied to clipboard
@Bean
fun globalExceptionHandler(errorStrategy: WebFluxErrorStrategy): WebExceptionHandler
Link copied to clipboard
@Bean
@Order(value = -2147483648)
@ConditionalOnMissingBean
fun globalRouteModule(kafkaProperties: ObjectProvider<KafkaProperties>): GlobalRouteModule
Link copied to clipboard
@Bean
@Order(value = -2147483648)
@ConditionalOnMissingBean
fun queryRouteModule(snapshotQueryHandler: SnapshotQueryHandler, eventStreamQueryHandler: EventStreamQueryHandler, rewriteRequestCondition: RewriteRequestCondition, exceptionHandler: RequestExceptionHandler): QueryRouteModule
Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun rewriteRequestCondition(): RewriteRequestCondition
Link copied to clipboard
@Bean
fun routeHandlerFunctionRegistrar(routeModules: ObjectProvider<WebFluxRouteModule>, httpFactories: ObjectProvider<HttpRouteHandlerFunctionFactory>): RouteHandlerFunctionRegistrar
Link copied to clipboard
@Bean
@Order(value = -2147483648)
@ConditionalOnMissingBean
fun snapshotRouteModule(stateAggregateFactory: StateAggregateFactory, eventStore: EventStore, snapshotRepository: SnapshotRepository, exceptionHandler: RequestExceptionHandler, batchExecutionPolicy: BatchExecutionPolicy): SnapshotRouteModule
Link copied to clipboard
@Bean
@Order(value = -2147483648)
@ConditionalOnMissingBean
fun stateRouteModule(stateAggregateRepository: StateAggregateRepository, stateAggregateFactory: StateAggregateFactory, eventStore: EventStore, exceptionHandler: RequestExceptionHandler, tracingPolicy: TracingPolicy): StateRouteModule
Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun tracingPolicy(): TracingPolicy
Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun webFluxErrorStrategy(): WebFluxErrorStrategy