Package io.servicetalk.http.api
Class DefaultServiceDiscoveryRetryStrategy<ResolvedAddress,E extends ServiceDiscovererEvent<ResolvedAddress>>
- java.lang.Object
-
- io.servicetalk.http.api.DefaultServiceDiscoveryRetryStrategy<ResolvedAddress,E>
-
- Type Parameters:
ResolvedAddress
- The type of address after resolution.E
- Type ofServiceDiscovererEvent
s published fromServiceDiscoverer.discover(Object)
.
- All Implemented Interfaces:
ServiceDiscoveryRetryStrategy<ResolvedAddress,E>
public final class DefaultServiceDiscoveryRetryStrategy<ResolvedAddress,E extends ServiceDiscovererEvent<ResolvedAddress>> extends java.lang.Object implements ServiceDiscoveryRetryStrategy<ResolvedAddress,E>
Default implementation forServiceDiscoveryRetryStrategy
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultServiceDiscoveryRetryStrategy.Builder<ResolvedAddress,E extends ServiceDiscovererEvent<ResolvedAddress>>
A builder to build instances ofDefaultServiceDiscoveryRetryStrategy
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Publisher<java.util.Collection<E>>
apply(Publisher<java.util.Collection<E>> sdEvents)
Applies this strategy on the passedPublisher
.
-
-
-
Method Detail
-
apply
public Publisher<java.util.Collection<E>> apply(Publisher<java.util.Collection<E>> sdEvents)
Description copied from interface:ServiceDiscoveryRetryStrategy
Applies this strategy on the passedPublisher
.- Specified by:
apply
in interfaceServiceDiscoveryRetryStrategy<ResolvedAddress,E extends ServiceDiscovererEvent<ResolvedAddress>>
- Parameters:
sdEvents
-Publisher
ofServiceDiscovererEvent
on which this strategy is to be applied.- Returns:
Publisher
after applying this retry strategy on the passedsdEvents
Publisher
.
-
-