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 TypeMethodDescriptionvoid
configureListenerMode
(Consumer<ListenerMode> consumer) Allows configuring theListenerMode
for this endpoint.void
Set the bean containing the method to be invoked with the incoming messages.void
setHandlerMethodFactory
(MessageHandlerMethodFactory handlerMethodFactory) Set theMessageHandlerMethodFactory
to be used for creating theHandlerMethod
.void
Set 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 theMessageHandlerMethodFactory
to be used for creating theHandlerMethod
.- Parameters:
handlerMethodFactory
- the factory.
-
configureListenerMode
Allows configuring theListenerMode
for this endpoint.- Parameters:
consumer
- a consumer for the strategy used by this endpoint.
-