Annotation Interface Timeout


@Documented @Target(METHOD) @Retention(RUNTIME) public @interface Timeout
Sets the default timeout of annotated @Callable methods in milliseconds. If the methods don't respond during this interval, browsers treat the methods unresponsive. Please note that browsers may override this timeout value. By default, the timeout is set to 5000 milliseconds. If there are more than one methods of the same name, the maximum value of timeout values is used.
関連項目:
  • 任意要素の概要

    任意要素
    修飾子とタイプ
    任意要素
    説明
    The default timeout expression.
    long
    The default timeout in milliseconds.
  • 要素の詳細

    • value

      long value
      The default timeout in milliseconds.
      戻り値:
      the default timeout in milliseconds
      デフォルト:
      5000L
    • string

      String string
      The default timeout expression. This accepts the same expressions as Value — for example, ${app.timeout}. The evaluated value is expected to be a number, i.e., the timeout in milliseconds.
      戻り値:
      the default timeout in milliseconds
      関連項目:
      • Value
      デフォルト:
      ""