Annotation Interface AsyncTask


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface AsyncTask
异步任务注解 用于标记需要异步执行的方法
  • Element Details

    • name

      String name
      任务名称
      Default:
      ""
    • description

      String description
      任务描述
      Default:
      ""
    • retryTimes

      int retryTimes
      重试次数
      Default:
      0
    • retryInterval

      long retryInterval
      重试间隔
      Default:
      0L
    • retryIntervalUnit

      TimeUnit retryIntervalUnit
      重试间隔时间单位
      Default:
      SECONDS
    • timeout

      long timeout
      超时时间
      Default:
      0L
    • timeoutUnit

      TimeUnit timeoutUnit
      超时时间单位
      Default:
      SECONDS