Class RetryCall

java.lang.Object
jp.co.moneyforward.autotest.framework.action.CallDecorator.Base<Call>
jp.co.moneyforward.autotest.framework.action.RetryCall
All Implemented Interfaces:
Call, CallDecorator<Call>

public final class RetryCall extends CallDecorator.Base<Call>
  • Constructor Details

    • RetryCall

      public RetryCall(Call target, Class<? extends Throwable> onExceptionType, int retryTimes, int interval)
      Creates an instance of this class.
  • Method Details

    • toAction

      public com.github.dakusui.actionunit.core.Action toAction(ActionComposer actionComposer)
      Description copied from interface: Call

      Converts this call to action to an action object.

      This is an Node#accept method in the Visitor pattern. Usually implementations of this method should call back by actionComposer#create(this) to make a double dispatch happen.

      Each value in the ongoingResolverBundle is a function that resolves a value of a variable designated by a corresponding key.

      Parameters:
      actionComposer - A visitor, which creates an action from this object.
      Returns:
      An action created by actionComposer.
    • times

      public int times()
    • onException

      public Class<? extends Throwable> onException()
    • interval

      public long interval()
    • intervalUnit

      public TimeUnit intervalUnit()