- Enclosing class:
Ft
The annotated method (or all methods on annotated type) will time out according to the configuration.
-
Optional Element Summary
Optional Elements
-
Element Details
-
name
String nameIf named, an attempt will be made to find a namedTimeout
instance in service registry. If not found, a new timeout will be created based on values on this annotation.- Returns:
- name of this timeout
- Default:
""
-
time
String timeDuration of timeout. Defaults toPT10S
(10 seconds).- Returns:
- timeout duration
- Default:
"PT10S"
-
currentThread
boolean currentThreadFlag to indicate that code must be executed in current thread instead of in an executor's thread. This flag isfalse
by default.- Returns:
- whether to run on current thread (
true
), or in an executor's thread (false
, default)
- Default:
false
-