ResolvedAddress - The type of address after resolution.E - Type of ServiceDiscovererEvents published from ServiceDiscoverer.discover(Object).HttpClientBuilder.retryServiceDiscoveryErrors(BiIntFunction)
or HttpClientBuilder.retryServiceDiscoveryErrors(BiIntFunction) combined with common utilities
from RetryStrategies or provide your own retry strategy.@Deprecated
@FunctionalInterface
public interface ServiceDiscoveryRetryStrategy<ResolvedAddress,E extends ServiceDiscovererEvent<ResolvedAddress>>
ServiceDiscoverer.discover(Object).
Note, the default implementation does not support
ServiceDiscovererEvent.Status#EXPIRED ServiceDiscovererEvent.status().
RetryStrategies,
HttpClientBuilder.retryServiceDiscoveryErrors(BiIntFunction)| Modifier and Type | Method and Description |
|---|---|
Publisher<Collection<E>> |
apply(Publisher<Collection<E>> sdEvents)
Deprecated.
Applies this strategy on the passed
Publisher. |
Publisher<Collection<E>> apply(Publisher<Collection<E>> sdEvents)
Publisher.sdEvents - Publisher of ServiceDiscovererEvent on which this strategy is to be applied.Publisher after applying this retry strategy on the passed sdEvents Publisher.