ServiceInstanceRegistry

@Component
class ServiceInstanceRegistry

ServiceInstanceRegistry is responsible to cache the current known service instances.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
@Autowired
lateinit var channelManager: ChannelManager
Link copied to clipboard
@Autowired
lateinit var componentRegistry: ComponentRegistry

Functions

Link copied to clipboard
Link copied to clipboard
fun getInstances(component: String): List<ServiceInstance>
Link copied to clipboard
fun getServiceAddress(component: String, preferredChannel: String? = null): ServiceAddress?
Link copied to clipboard
Link copied to clipboard
fun report()
Link copied to clipboard
fun startup()
Link copied to clipboard
fun update(newMap: MutableMap<String, List<ServiceInstance>>)