public interface LoadBalancedRetryFactory
Modifier and Type | Method and Description |
---|---|
default org.springframework.retry.backoff.BackOffPolicy |
createBackOffPolicy(String service)
Creates a
BackOffPolicy for a given service. |
default org.springframework.retry.RetryListener[] |
createRetryListeners(String service)
Creates an array of
RetryListener s for a given service. |
default LoadBalancedRetryPolicy |
createRetryPolicy(String service,
ServiceInstanceChooser serviceInstanceChooser)
Creates a
LoadBalancedRetryPolicy . |
default LoadBalancedRetryPolicy createRetryPolicy(String service, ServiceInstanceChooser serviceInstanceChooser)
LoadBalancedRetryPolicy
.service
- The ID of the service to create the retry policy for.serviceInstanceChooser
- Used to get the next server from a load balancer.default org.springframework.retry.RetryListener[] createRetryListeners(String service)
RetryListener
s for a given service.service
- The service to create the RetryListener
s for.RetryListener
s.default org.springframework.retry.backoff.BackOffPolicy createBackOffPolicy(String service)
BackOffPolicy
for a given service.service
- The service to create the BackOffPolicy
for.BackOffPolicy
.Copyright © 2022 Pivotal Software, Inc.. All rights reserved.