public interface ReactiveDiscoveryClient
extends org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ORDER
Default order of the discovery client.
|
Modifier and Type | Method and Description |
---|---|
String |
description()
A human-readable description of the implementation, used in HealthIndicator.
|
reactor.core.publisher.Flux<ServiceInstance> |
getInstances(String serviceId)
Gets all ServiceInstances associated with a particular serviceId.
|
default int |
getOrder()
Default implementation for getting order of discovery clients.
|
reactor.core.publisher.Flux<String> |
getServices() |
default void |
probe()
Can be used to verify the client is still valid and able to make calls.
|
static final int DEFAULT_ORDER
String description()
reactor.core.publisher.Flux<ServiceInstance> getInstances(String serviceId)
serviceId
- The serviceId to query.reactor.core.publisher.Flux<String> getServices()
default void probe()
A successful invocation with no exception thrown implies the client is able to make calls.
The default implementation simply calls getServices()
- client
implementations can override with a lighter weight operation if they choose to.
default int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.