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 sendAndWait-like methods.
Note that non-blocking requests sent using send-methods that return a CompletableFuture
will *not* time out
automatically. If a timeout is desired on non-blocking requests this needs to be manually configured, e.g. via
CompletableFuture.orTimeout(long, TimeUnit)
.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionint
Configures 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
-