Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.client.api
Class RetryInfo

java.lang.Object
  extended by 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

Field Summary
static RetryInfo NO_RETRY
           
 
Constructor Summary
RetryInfo(long delayUntilNextRetry, int retryCount)
          Creates a new RetryInfo with the given settings.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_RETRY

public static final RetryInfo NO_RETRY
Constructor Detail

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.
Method Detail

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

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.