Modifier and Type | Field and Description |
---|---|
protected int |
maxRetryCount |
protected long |
maxRetryInterval |
protected ForestRequest |
request |
protected long |
waitedTime |
Constructor and Description |
---|
BackOffRetryer(ForestRequest request) |
Modifier and Type | Method and Description |
---|---|
void |
canRetry(ForestRetryException ex) |
int |
getMaxRetryCount() |
long |
getMaxRetryInterval() |
ForestRequest |
getRequest() |
long |
getWaitedTime() |
protected long |
nextInterval(int currentCount) |
protected final ForestRequest request
protected final int maxRetryCount
protected final long maxRetryInterval
protected long waitedTime
public BackOffRetryer(ForestRequest request)
public void canRetry(ForestRetryException ex) throws Throwable
protected long nextInterval(int currentCount)
public ForestRequest getRequest()
public int getMaxRetryCount()
public long getMaxRetryInterval()
public long getWaitedTime()
Copyright © 2020. All rights reserved.