Examples of RetryException


Examples of abstrasy.interpreter.RetryException

        Interpreter interpreter = Interpreter.mySelf();
    if (!interpreter.isTerminalNode()){
      throw new InterpreterException(StdErrors.Retry_misplaced);
    }
       
        throw new RetryException(startAt);
      
    }
View Full Code Here

Examples of com.nirvanix.sdk.session.RetryException

        retry = true;
       
        // if we reach the maximum raise it as a retry exception.
        if ( retrycount++ > MAXRETRYATTEMPTS )
        {
      throw new RetryException( socketTimeout );
        }
       
        // Delay for a second on a read timeout if we are not at
        // max_retries
        Thread.sleep( this.RETRY_WAIT_SOCKET_READ_TIMEOUT );
    }
    catch ( java.net.SocketException socketEx )
    {
        // Go back to top of loop with new totalThisFile and retry
        // flag set.
        totalThisFile -= bytesRead;
        _bytesUploaded -= bytesRead;
        retry = true;
       
        // if we reach the maximum raise it as a retry exception.
        if ( retrycount++ > MAXRETRYATTEMPTS )
        {
      throw new RetryException( socketEx );
        }
       
        // Delay for a second on a read timeout if we are not at
        // max_retries
        Thread.sleep( this.RETRY_WAIT_SOCKET_READ_TIMEOUT );
    }
    catch ( Exception ex )
    {
        // There was a failure while transmitting, send out a retry
        // exception, the user should be responsible for catching
        // these
        // and handling them appropriately by resending the entire
        // file.
        // Later this will be replaced by block level retry.
       
        // Go back to top of loop with new totalThisFile and retry
        // flag set.
        totalThisFile -= bytesRead;
        _bytesUploaded -= bytesRead;
        retry = true;
       
        // if we reach the maximum raise it as a retry exception.
        if ( retrycount++ > MAXRETRYATTEMPTS )
        {
      throw new RetryException( ex );
        }
    }
      }
  }
  catch ( Exception ex )
View Full Code Here

Examples of org.jboss.test.retry.interfaces.RetryException

   public void retry() throws RemoteException
   {
      System.out.println("**** in retry ****");
      if (RetryException.wasRetried) return;
      throw new RetryException();
   }
View Full Code Here

Examples of org.springframework.retry.RetryException

  protected void registerThrowable(RetryPolicy retryPolicy, RetryState state,
      RetryContext context, Throwable e) {
    if (state != null) {
      Object key = state.getKey();
      if (context.getRetryCount() > 0 && !retryContextCache.containsKey(key)) {
        throw new RetryException(
            "Inconsistent state for failed item key: cache key has changed. "
                + "Consider whether equals() or hashCode() for the key might be inconsistent, "
                + "or if you need to supply a better key");
      }
      retryContextCache.put(key, context);
View Full Code Here

Examples of org.springframework.retry.RetryException

    }

    RetryContext context = retryContextCache.get(key);
    if (context == null) {
      if (retryContextCache.containsKey(key)) {
        throw new RetryException(
            "Inconsistent state for failed item: no history found. "
                + "Consider whether equals() or hashCode() for the item might be inconsistent, "
                + "or if you need to supply a better ItemKeyGenerator");
      }
      // The cache could have been expired in between calls to
View Full Code Here

Examples of org.springframework.retry.RetryException

      @SuppressWarnings("unchecked")
      E rethrow = (E) throwable;
      return rethrow;
    }
    else {
      throw new RetryException("Exception in batch process", throwable);
    }
  }
View Full Code Here

Examples of org.springframework.retry.RetryException

        }
        else {
          if (rollbackClassifier.classify(e)) {
            // Default is to rollback unless the classifier
            // allows us to continue
            throw new RetryException("Non-skippable exception in recoverer while reading", e);
          }

          throw new BatchRuntimeException(e);
        }
      }
View Full Code Here

Examples of org.springframework.retry.RetryException

        }
        else {
          if (rollbackClassifier.classify(e)) {
            // Default is to rollback unless the classifier
            // allows us to continue
            throw new RetryException("Non-skippable exception in recoverer while processing", e);
          }

          throw new BatchRuntimeException(e);
        }
      }
View Full Code Here

Examples of org.springframework.retry.RetryException

        }
        else {
          if (rollbackClassifier.classify(e)) {
            // Default is to rollback unless the classifier
            // allows us to continue
            throw new RetryException("Non-skippable exception in recoverer while write", e);
          }
          return null;
        }
      }
View Full Code Here

Examples of org.springframework.retry.RetryException

          }
          else {
            if (rollbackClassifier.classify(e)) {
              // Default is to rollback unless the classifier
              // allows us to continue
              throw new RetryException("Non-skippable exception in recoverer while processing", e);
            }
            iterator.remove(e);
            return null;
          }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.