Interface ServiceJobRetryStrategy.Builder

    • Method Detail

      • attempts

        ServiceJobRetryStrategy.Builder attempts​(Integer attempts)

        The number of times to move a service job to RUNNABLE status. You can specify between 1 and 10 attempts.

        Parameters:
        attempts - The number of times to move a service job to RUNNABLE status. You can specify between 1 and 10 attempts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • evaluateOnExit

        ServiceJobRetryStrategy.Builder evaluateOnExit​(Collection<ServiceJobEvaluateOnExit> evaluateOnExit)

        Array of ServiceJobEvaluateOnExit objects that specify conditions under which the service job should be retried or failed.

        Parameters:
        evaluateOnExit - Array of ServiceJobEvaluateOnExit objects that specify conditions under which the service job should be retried or failed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • evaluateOnExit

        ServiceJobRetryStrategy.Builder evaluateOnExit​(ServiceJobEvaluateOnExit... evaluateOnExit)

        Array of ServiceJobEvaluateOnExit objects that specify conditions under which the service job should be retried or failed.

        Parameters:
        evaluateOnExit - Array of ServiceJobEvaluateOnExit objects that specify conditions under which the service job should be retried or failed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.