Class SimpleRetryContext

java.lang.Object
ubic.gemma.core.util.SimpleRetryContext

public final class SimpleRetryContext extends Object
Holds the state of a retry attempt.
Author:
poirigui
  • Field Details

    • attempt

      public final int attempt
      Indicate the attempt number (zero for first, 1 for second, etc.)
    • lastAttempt

      public final boolean lastAttempt
      Indicate if this is the last attempt, any raised exception will bubble up to SimpleRetry.execute(SimpleRetryCallable, Object)
  • Constructor Details

    • SimpleRetryContext

      public SimpleRetryContext(int attempt, boolean lastAttempt)
      Creates a new SimpleRetryContext instance.
      Parameters:
      attempt - Indicate the attempt number (zero for first, 1 for second, etc.)
      lastAttempt - Indicate if this is the last attempt, any raised exception will bubble up to SimpleRetry.execute(SimpleRetryCallable, Object)
  • Method Details