public final class RetryInfo extends Object
Constructor and Description |
---|
RetryInfo(long delayUntilNextRetry,
int retryCount)
Creates a new RetryInfo with the given settings.
|
Modifier and Type | Method and Description |
---|---|
long |
getDelayUntilNextRetry()
Returns the amount of time, in milliseconds, before the action is retried.
|
int |
getRetryCount()
Returns the number of retries that have already been performed for this
same action.
|
String |
toString() |
public static final RetryInfo NO_RETRY
public RetryInfo(long delayUntilNextRetry, int retryCount)
delayUntilNextRetry
- The amount of time, in milliseconds, before the action is retried.
Negative values mean that no retry is planned.retryCount
- The number of retries that have already been performed for this
same action.public long getDelayUntilNextRetry()
public int getRetryCount()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.