Class SpringCloudAutoConfiguration.ReactiveWebApplicationGuard
java.lang.Object
io.axoniq.framework.springboot.autoconfig.SpringCloudAutoConfiguration.ReactiveWebApplicationGuard
- Enclosing class:
SpringCloudAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnProperty(name="axon.springcloud.enabled",
havingValue="true",
matchIfMissing=true)
@ConditionalOnWebApplication(type=REACTIVE)
public static class SpringCloudAutoConfiguration.ReactiveWebApplicationGuard
extends Object
Rejects an application that distributes messages over Spring Cloud from a WebFlux stack.
The endpoints members reach each other on are Spring MVC endpoints, and a query's responses are streamed with an
SseEmitter, which a reactive stack does not map. Such an application would register with discovery and
advertise what it handles while answering nothing, so it is rejected for the same reason an application with no
web stack is; see SpringCloudAutoConfiguration.NonWebApplicationGuard.
- Since:
- 5.4.0
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aReactiveWebApplicationGuard, which is only ever reached when the connector is enabled in an application whose web stack cannot serve its endpoints. -
Method Summary
-
Constructor Details
-
ReactiveWebApplicationGuard
public ReactiveWebApplicationGuard()Constructs aReactiveWebApplicationGuard, which is only ever reached when the connector is enabled in an application whose web stack cannot serve its endpoints.- Throws:
IllegalStateException- always, as reaching this constructor is the misconfiguration it reports
-