Package io.awspring.cloud.sqs.config
Interface HandlerMethodEndpoint
- All Superinterfaces:
Endpoint
- All Known Implementing Classes:
AbstractEndpoint,SqsEndpoint
Endpoint specialization that indicates that Message instances coming
from this endpoint will be handled by a HandlerMethod.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureListenerMode(Consumer<ListenerMode> consumer) Allows configuring theListenerModefor this endpoint.voidSet the bean containing the method to be invoked with the incoming messages.voidsetHandlerMethodFactory(MessageHandlerMethodFactory handlerMethodFactory) Set theMessageHandlerMethodFactoryto be used for creating theHandlerMethod.voidSet the method to be used when handling messages for this endpoint.Methods inherited from interface io.awspring.cloud.sqs.config.Endpoint
getId, getListenerContainerFactoryName, getLogicalNames, setupContainer
-
Method Details
-
setBean
Set the bean containing the method to be invoked with the incoming messages.- Parameters:
bean- the bean.
-
setMethod
Set the method to be used when handling messages for this endpoint.- Parameters:
method- the method.
-
setHandlerMethodFactory
Set theMessageHandlerMethodFactoryto be used for creating theHandlerMethod.- Parameters:
handlerMethodFactory- the factory.
-
configureListenerMode
Allows configuring theListenerModefor this endpoint.- Parameters:
consumer- a consumer for the strategy used by this endpoint.
-