public class NotificationMessagingTemplate extends AbstractMessageChannelMessagingSendingTemplate<TopicMessageChannel>
| Constructor and Description |
|---|
NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns) |
NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns,
org.springframework.cloud.aws.core.env.ResourceIdResolver resourceIdResolver) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
convertAndSend(String destinationName,
T payload)
IMPORTANT: the underlying message channel
TopicMessageChannel only
supports String as payload. |
<T> void |
convertAndSend(String destinationName,
T payload,
Map<String,Object> headers)
IMPORTANT: the underlying message channel
TopicMessageChannel only
supports String as payload. |
<T> void |
convertAndSend(String destinationName,
T payload,
Map<String,Object> headers,
org.springframework.messaging.core.MessagePostProcessor postProcessor)
IMPORTANT: the underlying message channel
TopicMessageChannel only
supports String as payload. |
<T> void |
convertAndSend(String destinationName,
T payload,
org.springframework.messaging.core.MessagePostProcessor postProcessor)
IMPORTANT: the underlying message channel
TopicMessageChannel only
supports String as payload. |
protected TopicMessageChannel |
resolveMessageChannel(String physicalResourceIdentifier) |
void |
sendNotification(String message,
String subject)
Convenience method that sends a notification with the given message and subject to the destination.
|
void |
sendNotification(String destinationName,
String message,
String subject)
Convenience method that sends a notification with the given message and subject to the destination.
|
doSend, resolveMessageChannelByLogicalName, send, setDefaultDestinationNameconvertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, doConvert, getDefaultDestination, getMessageConverter, getRequiredDefaultDestination, processHeadersToSend, send, send, setDefaultDestination, setMessageConverterpublic NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns,
org.springframework.cloud.aws.core.env.ResourceIdResolver resourceIdResolver)
public NotificationMessagingTemplate(com.amazonaws.services.sns.AmazonSNS amazonSns)
public <T> void convertAndSend(String destinationName, T payload) throws org.springframework.messaging.MessagingException
TopicMessageChannel only
supports String as payload. Therefore only String payloads are accepted.convertAndSend in interface org.springframework.messaging.core.DestinationResolvingMessageSendingOperations<TopicMessageChannel>convertAndSend in class AbstractMessageChannelMessagingSendingTemplate<TopicMessageChannel>org.springframework.messaging.MessagingExceptionMessageSendingOperations.convertAndSend(Object, Object, java.util.Map)public <T> void convertAndSend(String destinationName, T payload, Map<String,Object> headers) throws org.springframework.messaging.MessagingException
TopicMessageChannel only
supports String as payload. Therefore only String payloads are accepted.convertAndSend in interface org.springframework.messaging.core.DestinationResolvingMessageSendingOperations<TopicMessageChannel>convertAndSend in class AbstractMessageChannelMessagingSendingTemplate<TopicMessageChannel>org.springframework.messaging.MessagingExceptionMessageSendingOperations.convertAndSend(Object, Object, java.util.Map)public <T> void convertAndSend(String destinationName, T payload, org.springframework.messaging.core.MessagePostProcessor postProcessor) throws org.springframework.messaging.MessagingException
TopicMessageChannel only
supports String as payload. Therefore only String payloads are accepted.convertAndSend in interface org.springframework.messaging.core.DestinationResolvingMessageSendingOperations<TopicMessageChannel>convertAndSend in class AbstractMessageChannelMessagingSendingTemplate<TopicMessageChannel>org.springframework.messaging.MessagingExceptionMessageSendingOperations.convertAndSend(Object, Object, java.util.Map)public <T> void convertAndSend(String destinationName, T payload, Map<String,Object> headers, org.springframework.messaging.core.MessagePostProcessor postProcessor) throws org.springframework.messaging.MessagingException
TopicMessageChannel only
supports String as payload. Therefore only String payloads are accepted.convertAndSend in interface org.springframework.messaging.core.DestinationResolvingMessageSendingOperations<TopicMessageChannel>convertAndSend in class AbstractMessageChannelMessagingSendingTemplate<TopicMessageChannel>org.springframework.messaging.MessagingExceptionMessageSendingOperations.convertAndSend(Object, Object, java.util.Map)protected TopicMessageChannel resolveMessageChannel(String physicalResourceIdentifier)
resolveMessageChannel in class AbstractMessageChannelMessagingSendingTemplate<TopicMessageChannel>public void sendNotification(String destinationName, String message, String subject)
destinationName - The logical name of the destinationmessage - The message to sendsubject - The subject to sendpublic void sendNotification(String message, String subject)
message - The message to sendsubject - The subject to sendCopyright © 2014 Pivotal Software, Inc.. All rights reserved.