public class FixedRetryStrategy extends Object implements RetryStrategy
RetryStrategy
that retries at a fixed delay.Constructor and Description |
---|
FixedRetryStrategy(int remainingRetries,
Duration retryDelay) |
Modifier and Type | Method and Description |
---|---|
RetryStrategy |
getNextRetryStrategy() |
int |
getNumRemainingRetries() |
Duration |
getRetryDelay() |
public FixedRetryStrategy(int remainingRetries, Duration retryDelay)
remainingRetries
- number of times to retryretryDelay
- delay between retriespublic int getNumRemainingRetries()
getNumRemainingRetries
in interface RetryStrategy
public Duration getRetryDelay()
getRetryDelay
in interface RetryStrategy
public RetryStrategy getNextRetryStrategy()
getNextRetryStrategy
in interface RetryStrategy
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.