public class HandlerTimeoutHandlerEnhancerDefinition extends Object implements HandlerEnhancerDefinition
TimeoutWrappedMessageHandlingMember if the handler should have a
timeout.
The timeout is determined by the HandlerTimeoutConfiguration and the
MessageHandlerTimeout annotation on the message handler method. The annotation
takes precedence over the configuration.
TimeoutWrappedMessageHandlingMember,
HandlerTimeoutConfiguration| Constructor and Description |
|---|
HandlerTimeoutHandlerEnhancerDefinition(HandlerTimeoutConfiguration configuration)
Creates a new
HandlerTimeoutHandlerEnhancerDefinition with the given configuration. |
| Modifier and Type | Method and Description |
|---|---|
<T> MessageHandlingMember<T> |
wrapHandler(MessageHandlingMember<T> original)
Enhance the given
original handler. |
public HandlerTimeoutHandlerEnhancerDefinition(HandlerTimeoutConfiguration configuration)
HandlerTimeoutHandlerEnhancerDefinition with the given configuration. This configuration
will be used as default, but can be overridden by the MessageHandlerTimeout annotation for individual
message handlers.configuration - The configuration for the timeout settingspublic <T> MessageHandlingMember<T> wrapHandler(@Nonnull MessageHandlingMember<T> original)
HandlerEnhancerDefinitionoriginal handler. Implementations may return the original message handler.wrapHandler in interface HandlerEnhancerDefinitionT - The type of object that will perform the actual handling of the messageoriginal - The original message handlerCopyright © 2010–2025. All rights reserved.