Annotation Interface Deadline


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Deadline
Declares the default invocation deadline for a service method.

Caller-supplied deadlines and resource policy may shorten this value. The annotation does not promise completion before the deadline; it describes timeout metadata used by runtime dispatch and diagnostics.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    long
    Returns the deadline in milliseconds.
  • Element Details

    • millis

      long millis
      Returns the deadline in milliseconds.
      Returns:
      positive timeout in milliseconds