public class RetryConfig extends Object
Constructor and Description |
---|
RetryConfig() |
Modifier and Type | Method and Description |
---|---|
float |
getBackoffFactor()
Factor by which the initial delay is multiplied for each retry after the
first, this allows for exponential backoff of retry times up to a certain
ceiling
|
int |
getInitialDelay()
Delay in milliseconds between the initial failure message and the first
attempt to retry the failed job
|
int |
getMaxDelay()
Maximum delay in milliseconds between failure reception and retry.
|
int |
getMaxRetries()
Maximum number of retries for a failing process
|
void |
setBackoffFactor(float factor) |
void |
setInitialDelay(int delay) |
void |
setMaxDelay(int delay) |
void |
setMaxRetries(int max) |
public float getBackoffFactor()
public int getInitialDelay()
public int getMaxDelay()
public int getMaxRetries()
public void setBackoffFactor(float factor)
public void setInitialDelay(int delay)
public void setMaxDelay(int delay)
public void setMaxRetries(int max)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.