Annotation Type Timeout


  • @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    public @interface Timeout
    Specify a timeout period after which the remote invocation is aborted when no result is received. Applicable to all methods of a service interface or a service interface as a whole. Interface specific settings apply to all methods without explicit timeout specifications.
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static long NONE
      Constant for no timeout.
      static java.lang.String TIMEOUT
      Constant for timeout name in non-functional properties.
      static long UNSET
      Constant for unset (i.e. use current default timeout).
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      long value
      The timeout period after which local or remote invocations are aborted when no result is received.
    • Field Detail

      • NONE

        static final long NONE
        Constant for no timeout.
      • UNSET

        static final long UNSET
        Constant for unset (i.e. use current default timeout).
      • TIMEOUT

        static final java.lang.String TIMEOUT
        Constant for timeout name in non-functional properties.
    • Element Detail

      • value

        long value
        The timeout period after which local or remote invocations are aborted when no result is received.
        Default:
        -2L