@Documented @Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR}) @HasHandlerAttributes public @interface MessageHandlerTimeout
HandlerTimeoutConfiguration
, for each property individually.
Any property set to -1
will use the default value of the
HandlerTimeoutConfiguration
. For example, setting the timeout to
-1
, and warningThreshold
to 1000
, will take the default timeout from the configuration, while
setting the warning threshold to 1000
.
Modifier and Type | Optional Element and Description |
---|---|
int |
timeoutMs
The timeout for a single message in milliseconds.
|
int |
warningIntervalMs
The interval in milliseconds at which warning messages should be logged that the message handler is taking too
long.
|
int |
warningThresholdMs
The time in milliseconds after which a warning message should be logged that the message handler is taking
too long.
|
public abstract int timeoutMs
-1
indicates that the timeout should be used
of the HandlerTimeoutConfiguration
.public abstract int warningThresholdMs
-1
indicates that the default warning threshold should be used.
A value higher than the timeout
(or the timeout from the configuration if is -1
on the
annotation), will disable warnings.
public abstract int warningIntervalMs
-1
indicates that the default warning interval should be used of the
HandlerTimeoutConfiguration
.Copyright © 2010–2025. All rights reserved.