public interface LoadBalancedRetryPolicy
LoadBalancerClient
.Modifier and Type | Method and Description |
---|---|
boolean |
canRetryNextServer(LoadBalancedRetryContext context)
Return true to retry the failed request on the next server from the load balancer.
|
boolean |
canRetrySameServer(LoadBalancedRetryContext context)
Return true to retry the failed request on the same server.
|
void |
close(LoadBalancedRetryContext context)
Called when the retry operation has ended.
|
void |
registerThrowable(LoadBalancedRetryContext context,
Throwable throwable)
Called when the execution fails.
|
boolean canRetrySameServer(LoadBalancedRetryContext context)
context
- the context for the retry operationboolean canRetryNextServer(LoadBalancedRetryContext context)
context
- the context for the retry operationvoid close(LoadBalancedRetryContext context)
context
- the context for the retry operationvoid registerThrowable(LoadBalancedRetryContext context, Throwable throwable)
context
- the context for the retry operationthrowable
- the throwable from the failed execution.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.