Annotation Interface Timeout
Annotation to be placed on requests (i.e. queries and commands). Configures the time before such request will time
out when sent using request/response methods such as
send and sendAndWait.
If no timeout is configured here, blocking sendAndWait calls use their standard one-minute timeout while
non-blocking send calls use the gateway's default request handling behavior.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionintConfigures the maximum number of time units before a request with this annotation will time out. -
Optional Element Summary
Optional Elements
-
Element Details
-
value
int valueConfigures the maximum number of time units before a request with this annotation will time out. -
timeUnit
TimeUnit timeUnitReturns the time unit forvalue(). Defaults toTimeUnit.MILLISECONDS.- Default:
MILLISECONDS
-