public interface ReactiveDiscoveryClient
extends org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ORDER
Default order of the discovery client.
|
static org.apache.commons.logging.Log |
LOG |
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()
Deprecated.
in favour of
reactiveProbe() . This
method should not be used as is, as it contains a bug - the method called within
returns a Flux , which is not accessible for subscription or blocking from
within. We are leaving it with a deprecation in order not to bring downstream
implementations. |
default reactor.core.publisher.Mono<Void> |
reactiveProbe()
Can be used to verify the client is still valid and able to make calls.
|
static final org.apache.commons.logging.Log LOG
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()
@Deprecated default void probe()
reactiveProbe()
. This
method should not be used as is, as it contains a bug - the method called within
returns a Flux
, which is not accessible for subscription or blocking from
within. We are leaving it with a deprecation in order not to bring downstream
implementations.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 reactor.core.publisher.Mono<Void> reactiveProbe()
A successful invocation with no exception thrown implies the client is able to make calls.
The default implementation simply calls getServices()
and wraps it with a
Mono
- client implementations can override with a lighter weight operation
if they choose to.
default int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.