org.jboss.errai.bus.client.api
Class RetryInfo
java.lang.Object
org.jboss.errai.bus.client.api.RetryInfo
public final class RetryInfo
- extends Object
Contains information about a potential upcoming attempt to retry something.
- Author:
- Jonathan Fuerth , Christian Sadilek
Constructor Summary |
RetryInfo(long delayUntilNextRetry,
int retryCount)
Creates a new RetryInfo with the given settings. |
NO_RETRY
public static final RetryInfo NO_RETRY
RetryInfo
public RetryInfo(long delayUntilNextRetry,
int retryCount)
- Creates a new RetryInfo with the given settings.
- Parameters:
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.
getDelayUntilNextRetry
public long getDelayUntilNextRetry()
- Returns the amount of time, in milliseconds, before the action is retried.
- Returns:
- The amount of time, in milliseconds, before the action is retried.
Negative values mean that no retry is planned.
getRetryCount
public int getRetryCount()
- Returns the number of retries that have already been performed for this
same action.
- Returns:
- The number of retries that have already been performed for this
same action.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.