Class RetryPolicy


  • public final class RetryPolicy
    extends Object
    Execution policy for an activity.
    • Constructor Detail

      • RetryPolicy

        public RetryPolicy()
    • Method Detail

      • count

        public Object count()
        Get the count property: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0.
        Returns:
        the count value.
      • withCount

        public RetryPolicy withCount​(Object count)
        Set the count property: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0.
        Parameters:
        count - the count value to set.
        Returns:
        the RetryPolicy object itself.
      • intervalInSeconds

        public Integer intervalInSeconds()
        Get the intervalInSeconds property: Interval between retries in seconds. Default is 30.
        Returns:
        the intervalInSeconds value.
      • withIntervalInSeconds

        public RetryPolicy withIntervalInSeconds​(Integer intervalInSeconds)
        Set the intervalInSeconds property: Interval between retries in seconds. Default is 30.
        Parameters:
        intervalInSeconds - the intervalInSeconds value to set.
        Returns:
        the RetryPolicy object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.