WowSpringCloudAutoConfiguration

@Configuration(proxyBeanMethods = false)
class WowSpringCloudAutoConfiguration

Wires a Wow service to the application's Spring Cloud service registry, when it runs a node (the runtime is on the class path): its registration carries the node's internal address (WowRegistrationMetadata), and wow.peer.discovery=spring-cloud finds its peers there (SpringCloudPeerDiscovery), the host taking every me.ahoo.wow.spi.peer.PeerDiscovery bean. A node that keeps another discovery is told once, at startup, how to switch. This module lists it in META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports and imports no Spring Boot type. An application that is no Wow service takes LoadBalancedEndpoints alone.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
@Bean
fun wowSpringCloudDiscoveryHint(discovery: SpringCloudPeerDiscovery, nodes: ObjectProvider<ServiceNode>): SmartInitializingSingleton

Tells, once the node's beans are built, how to find its peers in the registry when it does not.

Link copied to clipboard
@Bean
fun wowSpringCloudPeerDiscovery(clients: ObjectProvider<ReactiveDiscoveryClient>): SpringCloudPeerDiscovery