public class QueueMessageHandlerFactory extends Object
Constructor and Description |
---|
QueueMessageHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
QueueMessageHandler |
createQueueMessageHandler() |
com.amazonaws.services.sqs.AmazonSQS |
getAmazonSqs() |
void |
setAmazonSqs(com.amazonaws.services.sqs.AmazonSQSAsync amazonSqs)
Sets the
AmazonSQS client that is going to be used to create a new
QueueMessagingTemplate if sendToMessagingTemplate is
null . |
void |
setArgumentResolvers(List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> argumentResolvers) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Configures a
BeanFactory that should be used to resolve expressions and placeholder for
SendTo annotations. |
void |
setResourceIdResolver(org.springframework.cloud.aws.core.env.ResourceIdResolver resourceIdResolver)
This value is only used if no
sendToMessagingTemplate has been set. |
void |
setReturnValueHandlers(List<org.springframework.messaging.handler.invocation.HandlerMethodReturnValueHandler> returnValueHandlers) |
void |
setSendToMessagingTemplate(org.springframework.messaging.core.DestinationResolvingMessageSendingOperations<?> sendToMessagingTemplate)
Configures the
DestinationResolvingMessageSendingOperations template
used by the SendToHandlerMethodReturnValueHandler to
send return values of handler methods. |
public void setArgumentResolvers(List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> argumentResolvers)
public void setReturnValueHandlers(List<org.springframework.messaging.handler.invocation.HandlerMethodReturnValueHandler> returnValueHandlers)
public void setSendToMessagingTemplate(org.springframework.messaging.core.DestinationResolvingMessageSendingOperations<?> sendToMessagingTemplate)
DestinationResolvingMessageSendingOperations
template
used by the SendToHandlerMethodReturnValueHandler
to
send return values of handler methods.sendToMessagingTemplate
- A DestinationResolvingMessageSendingOperations
template for
sending return values of handler methods.public void setAmazonSqs(com.amazonaws.services.sqs.AmazonSQSAsync amazonSqs)
Sets the AmazonSQS
client that is going to be used to create a new
QueueMessagingTemplate
if sendToMessagingTemplate
is
null
. This template is used by the
SendToHandlerMethodReturnValueHandler
to send the return
values of handler methods annotated with SendTo
.
An AmazonSQS
client is only needed if sendToMessagingTemplate
is
null
.
amazonSqs
- The AmazonSQS
client that is going to be used by the
SendToHandlerMethodReturnValueHandler
to send
messages.public com.amazonaws.services.sqs.AmazonSQS getAmazonSqs()
public void setResourceIdResolver(org.springframework.cloud.aws.core.env.ResourceIdResolver resourceIdResolver)
sendToMessagingTemplate
has been set.resourceIdResolver
- the resourceIdResolver to use for resolving logical to physical ids in a CloudFormation environment. This
resolver will be used by the QueueMessagingTemplate
created for the SendToHandlerMethodReturnValueHandler
.public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
BeanFactory
that should be used to resolve expressions and placeholder for
SendTo
annotations. If not set, then no
expressions or place holders will be resolved.beanFactory
- - the bean factory used to resolve expressions and / or place holderspublic QueueMessageHandler createQueueMessageHandler()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.