public static <E extends Exception> Retry<E> action(Action<E> action) {
    return new Retry<>(action);
  }
Create a retryable action.

@param action the action to be run
@param <E> the class of exceptions that may be thrown
@return the instance
jib-core/src/main/java/com/google/cloud/tools/jib/cache/Retry.java